Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker fixes #699

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ RUN apt-get -y \
openssh-client && \
apt-get -y clean && \
apt-get -q -y autoremove
RUN pip install --upgrade futures tornado cssmin slimit psutil

RUN pip install --upgrade pip
COPY requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt

# Create the necessary directories, clone the repo, and install everything
RUN mkdir -p /gateone/logs && \
Expand All @@ -78,4 +81,4 @@ RUN rm -f /etc/gateone/ssl/key.pem && \

EXPOSE 8000

CMD ["/usr/local/bin/update_and_run_gateone", "--log_file_prefix=/gateone/logs/gateone.log"]
ENTRYPOINT ["/usr/local/bin/update_and_run_gateone", "--log_file_prefix=/gateone/logs/gateone.log"]
2 changes: 2 additions & 0 deletions docker/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build:
docker build -t gateone .
5 changes: 5 additions & 0 deletions docker/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
cssmin==0.2.*
futures==3.2.*
psutil==5.4.*
slimit==0.8.*
tornado==4.5.*
1 change: 0 additions & 1 deletion docker/update_and_run_gateone.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
print("Encountered a problem trying to install/upgrade Gate One...")
print(output)
sys.exit(1)
retcode, output = getstatusoutput('pip install --upgrade tornado')
else:
go_args.remove('--noupdate')
os.execvp('/usr/bin/python', [
Expand Down