Skip to content

Commit

Permalink
Build docker image from local repo not origin
Browse files Browse the repository at this point in the history
  • Loading branch information
zerda committed Apr 25, 2018
1 parent b5ca47a commit f33ebca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,12 @@ COPY requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt

# Create the necessary directories, clone the repo, and install everything
COPY . /gateone
RUN mkdir -p /gateone/logs && \
mkdir -p /gateone/users && \
mkdir -p /etc/gateone/conf.d && \
mkdir -p /etc/gateone/ssl && \
cd /gateone && \
git clone $GATEONE_REPO_URL && \
cd GateOne && \
python setup.py install && \
cp docker/update_and_run_gateone.py /usr/local/bin/update_and_run_gateone && \
cp docker/60docker.conf /etc/gateone/conf.d/60docker.conf
Expand Down
6 changes: 3 additions & 3 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ The Dockerfile along with the update_and_run_gateone.py script and 99docker.conf

You can build your own copy of the liftoff/gateone image using that Dockerfile like so:

git clone https://github.com/liftoff/GateOne.git # Clone the repo
cd GateOne/docker
docker build -t gateone . # Always tag your builds!
git clone https://github.com/zerda/GateOne.git # Clone the repo
cd GateOne
docker build -t gateone ./docker/ # Always tag your builds!

Issues, Bugs, Feature Suggestions
---------------------------------
Expand Down

0 comments on commit f33ebca

Please sign in to comment.