Skip to content

Commit

Permalink
Merge pull request #11 from labteral/develop
Browse files Browse the repository at this point in the history
fix docker image
  • Loading branch information
brunneis authored May 7, 2021
2 parents 1ea3a22 + a3d3f79 commit a914746
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
5 changes: 2 additions & 3 deletions docker/build.sh → build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/bin/bash
source env.sh
cd ../stopover && tar --dereference -c -f ../docker/stopover.tar * && cd ../docker
docker build -t labteral/stopover-server:$STOPOVER_VERSION --build-arg ROCKSDB_VERSION=$ROCKSDB_VERSION .
docker build -t labteral/stopover-server:$STOPOVER_VERSION --build-arg ROCKSDB_VERSION=$ROCKSDB_VERSION -f docker/Dockerfile .
docker tag labteral/stopover-server:$STOPOVER_VERSION labteral/stopover-server:latest
rm -f stopover.tar

6 changes: 3 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ RUN \
&& rm -rf init_pkgs current_pkgs /root/.cache/pip \
&& find / -type d -name __pycache__ -exec rm -r {} \+

ADD stopover.tar /opt/stopover
WORKDIR /opt/stopover

ENTRYPOINT python server.py
COPY . .
RUN python setup.py install
ENTRYPOINT python -m stopover_server
3 changes: 0 additions & 3 deletions docker/env.sh

This file was deleted.

3 changes: 3 additions & 0 deletions env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
export STOPOVER_VERSION=$(cat stopover_server/version.py | grep version | cut -f2 -d\' | head -1 | xargs)
export ROCKSDB_VERSION=6.10.2
2 changes: 1 addition & 1 deletion stopover_server/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from stopover import __version__
from .version import __version__

0 comments on commit a914746

Please sign in to comment.