-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed version of Kex in docker image
- Loading branch information
1 parent
3d38d8d
commit 137b5c5
Showing
5 changed files
with
37 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,31 @@ | ||
FROM abdullin/kex-standalone:base | ||
FROM archlinux:latest | ||
MAINTAINER Azat Abdullin <[email protected]> | ||
|
||
ARG version | ||
|
||
# install required packages | ||
USER root | ||
RUN pacman -Syu --noconfirm \ | ||
git \ | ||
wget \ | ||
unzip \ | ||
jdk8-openjdk \ | ||
maven \ | ||
python3 | ||
|
||
# install kex scripts | ||
COPY kex-test.sh /usr/bin | ||
COPY kex-run.sh /usr/bin | ||
RUN chmod a+rwx /usr/bin/kex-test.sh | ||
RUN chmod a+rwx /usr/bin/kex-run.sh | ||
|
||
# install kex | ||
USER root | ||
RUN mkdir kex | ||
WORKDIR /home/kex | ||
RUN wget https://github.com/vorpal-research/kex/releases/download/$version/kex-$version.zip | ||
RUN unzip kex-$version.zip | ||
WORKDIR /home | ||
|
||
# prepare for run | ||
USER root | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
|
||
.PHONY: all | ||
|
||
all: test run | ||
VERSION=0.0.1 | ||
|
||
base: | ||
docker build -f KexStandaloneBase -t abdullin/kex-standalone:base . | ||
all: $(VERSION) | ||
|
||
test: base | ||
docker build -f KexStandaloneTest -t abdullin/kex-standalone:test . | ||
|
||
run: base | ||
docker build -f KexStandaloneRun -t abdullin/kex-standalone:run . | ||
$(VERSION): | ||
docker build --build-arg="version=$(VERSION)" -f KexStandaloneRun -t abdullin/kex-standalone:$(VERSION) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
#!/bin/bash | ||
|
||
kex-install.sh | ||
cd /home/kex | ||
mvn package | ||
python3 ./kex.py $* |