Commit 93969b6f authored by Victor Khilin's avatar Victor Khilin
Browse files

launcher kustomized, TODO: pass --build-args to the Dockerfile from launcher.py

parent 3e071861
FROM anapsix/alpine-java:8_server-jre
ARG node_version
ENV env_node_version=${node_version}
COPY Dockerfile_content/accounts_template.conf /node/
COPY Dockerfile_content/generate.sh /node/
......@@ -8,7 +11,8 @@ COPY tmp/jcp-*.tar.gz /node/jcp/
RUN chmod +x /node/generate.sh && \
apk update && \
apk add wget gettext bash libxext libxrender libxtst libxi && \
wget -q https://artifacts.vostokservices.com/repository/fileshare/node_build/generators-${node_version}.jar -O /node/generator.jar
wget -q https://artifacts.vostokservices.com/repository/fileshare/node_build/generators-${node_version}.jar -O /node/generator.jar && \
wget -q https://artifacts.vostokservices.com/repository/fileshare/node_build/generators-${env_node_version}.jar -O /node/generator.jar
ENTRYPOINT "/node/generate.sh"
......@@ -82,8 +82,9 @@ if __name__=="__main__":
r = requests.get(r_url)
with open('{}/{}'.format(dst_jcp,jcp_name[options.node_evolved]), 'wb') as f:
f.write(r.content)
build_image_cmd = [docker, 'build', '-t', 'node_config_generator', '.']
build_image_build_arg_line = 'node_version=' + options.node_version
build_image_cmd = [docker, 'build', '--build-arg', build_image_build_arg_line, '-t', 'node_config_generator', '.']
print ("Running " + str(build_image_cmd) + " ...")
subprocess.run(build_image_cmd)
generate_cmd = [docker, 'run', '-it',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment