This repository was archived by the owner on Oct 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (34 loc) · 1.51 KB
/
Dockerfile
File metadata and controls
40 lines (34 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM google/cloud-sdk
FROM gcr.io/google-appengine/openjdk:8
RUN apt-get update
RUN apt-get install -y software-properties-common
RUN apt-get install -y nginx openssh-server git-core openssh-client curl \
nano build-essential openssl zlib1g zlib1g-dev libssl-dev libyaml-dev \
libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake \
libtool pkg-config python python-dev python-pip wget supervisor
# Install the Google Cloud SDK from the latest
RUN apt-get install unzip && \
curl -O https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.zip && \
unzip google-cloud-sdk.zip -d /google/ && \
rm google-cloud-sdk.zip && \
echo PATH=$PATH:/google/google-cloud-sdk/bin >> /etc/profile && \
/google/google-cloud-sdk/install.sh \
--rc-path=/etc/bash.bashrc \
--disable-installation-options && \
/google/google-cloud-sdk/bin/gcloud config set \
component_manager/disable_update_check True && \
. /etc/profile
# Setup maven
ARG MAVEN_VERSION=3.3.9
ARG BASE_URL=https://apache.osuosl.org/maven/maven-3/${MAVEN_VERSION}/binaries
ENV MAVEN_OPTS=-Xss2m
RUN mkdir -p /usr/share/maven /usr/share/maven/ref \
&& curl -fsSL -o /tmp/apache-maven.tar.gz ${BASE_URL}/apache-maven-${MAVEN_VERSION}-bin.tar.gz \
&& tar -xzf /tmp/apache-maven.tar.gz -C /usr/share/maven --strip-components=1 \
&& rm -f /tmp/apache-maven.tar.gz \
&& ln -s /usr/share/maven/bin/mvn /usr/bin/mvn
# Add this working folder
ADD . /mlab-vis-pipeline
WORKDIR /mlab-vis-pipeline
# Build jar
RUN cd dataflow && mvn package