Skip to content

Commit

Permalink
Fix docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieuancelin committed Jan 15, 2018
1 parent e408aa5 commit 8f7aea7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
3 changes: 1 addition & 2 deletions docker/otoroshicli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ WORKDIR /usr/app

COPY . /usr/app

RUN wget https://dl.bintray.com/maif/binaries/linux-otoroshicli/latest/otoroshicli \
&& chmod +x otoroshicli
RUN chmod +x otoroshicli

VOLUME /usr/app

Expand Down
4 changes: 4 additions & 0 deletions scripts/dockerpush.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,16 @@ then
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD maif-docker-docker.bintray.io

cd $LOCATION/docker/build
cp ../../otoroshi/target/universal/otoroshi-$VERSION.zip ./otoroshi-dist.zip
docker build --no-cache -t otoroshi .
rm ./otoroshi-dist.zip
docker tag otoroshi maif-docker-docker.bintray.io/otoroshi
docker push maif-docker-docker.bintray.io/otoroshi

cd $LOCATION/docker/otoroshicli
cp ../../clients/cli/target/release/otoroshicli ./otoroshicli
docker build --no-cache -t otoroshicli .
rm ./otoroshicli
docker tag otoroshicli maif-docker-docker.bintray.io/otoroshicli
docker push maif-docker-docker.bintray.io/otoroshicli
fi
Expand Down
9 changes: 9 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,15 @@ rm ./otoroshi-dist.zip
# push docker image on bintray
docker tag otoroshi "maif-docker-docker.bintray.io/otoroshi:$VERSION"
docker push "maif-docker-docker.bintray.io/otoroshi:$VERSION"

cd $LOCATION/docker/otoroshicli
cp ../../clients/cli/target/release/otoroshicli ./otoroshicli
# build docker image
docker build --no-cache -t otoroshicli .
rm ./otoroshicli
# push docker image on bintray
docker tag otoroshicli "maif-docker-docker.bintray.io/otoroshicli:$VERSION"
docker push "maif-docker-docker.bintray.io/otoroshicli:$VERSION"
cd $LOCATION

# update version number and commit / push
Expand Down

0 comments on commit 8f7aea7

Please sign in to comment.