Sha256: 588145cac2be7b5dd29ee90f068061cfd190799663a2016e227f720a215ea7e4
Contents?: true
Size: 1.05 KB
Versions: 10
Compression:
Stored size: 1.05 KB
Contents
FROM ibmcom/kitura-ubuntu:latest EXPOSE 8090 # Create directory for server files RUN mkdir /<%= application_name %> # Create logs folder RUN mkdir /var/log/<%= application_name %> # Install s6 and consul-template RUN apt-get update RUN yes | apt-get install wget tar unzip # s6 overlay ADD https://github.com/just-containers/s6-overlay/releases/download/v1.17.1.1/s6-overlay-amd64.tar.gz /tmp/s6-overlay.tar.gz RUN tar xvfz /tmp/s6-overlay.tar.gz -C /; \ rm -rf /etc/s6 RUN wget https://releases.hashicorp.com/consul-template/0.15.0/consul-template_0.15.0_linux_386.zip; \ unzip consul-template_0.15.0_linux_386.zip; \ mv consul-template /bin/consul-template # Configure consul-template supervisor and S6 config COPY config.ctmpl /<%= application_name %>/config.ctmpl COPY s6-etc /etc/s6 RUN chmod -R 755 /etc/s6 # Copy binary COPY <%= application_name %>App /<%= application_name %>/<%= application_name %>App COPY libCHttpParser.so /usr/local/lib/libCHttpParser.so ENV LD_LIBRARY_PATH /usr/local/lib:${LD_LIBRARY_PATH} ENTRYPOINT ["/bin/s6-svscan","/etc/s6"] CMD []
Version data entries
10 entries across 10 versions & 1 rubygems