Skip to content

Instantly share code, notes, and snippets.

@JiniousChoi
Created August 7, 2018 04:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JiniousChoi/b1b86581261ae49df728cb689f237f02 to your computer and use it in GitHub Desktop.
Save JiniousChoi/b1b86581261ae49df728cb689f237f02 to your computer and use it in GitHub Desktop.
core/invoker/Dockerfile
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements; and to You under the Apache License, Version 2.0.
FROM scala
ENV DOCKER_VERSION 1.12.0
ENV KUBERNETES_VERSION 1.6.4
RUN apk update
RUN apk add --update wget
RUN apk add --update openssl
RUN apk add ca-certificates
RUN update-ca-certificates
# Uncomment to fetch latest version of docker instead: RUN wget -qO- https://get.docker.com | sh
# Install docker client
RUN curl -sSL -o docker-${DOCKER_VERSION}.tgz https://get.docker.com/builds/Linux/x86_64/docker-${DOCKER_VERSION}.tgz && \
tar --strip-components 1 -xvzf docker-${DOCKER_VERSION}.tgz -C /usr/bin docker/docker && \
tar --strip-components 1 -xvzf docker-${DOCKER_VERSION}.tgz -C /usr/bin docker/docker-runc && \
rm -f docker-${DOCKER_VERSION}.tgz && \
chmod +x /usr/bin/docker && \
chmod +x /usr/bin/docker-runc
# Install kubernetes client
RUN wget --no-verbose https://storage.googleapis.com/kubernetes-release/release/v${KUBERNETES_VERSION}/bin/linux/amd64/kubectl && \
chmod +x kubectl && \
mv kubectl /usr/bin/kubectl
ADD build/distributions/invoker.tar ./
COPY init.sh /
RUN chmod +x init.sh
EXPOSE 8080
CMD ["./init.sh", "0"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment