-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[risk=no] adding docker file in deploy (#1107)
* adding docker file in deploy * installing sudo on docker * installing sudo on docker Co-authored-by: Srushti Gangireddy <[email protected]>
- Loading branch information
1 parent
41bc821
commit 230b1ca
Showing
3 changed files
with
53 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Image used for deployment. The Circle image is not used here as it does not | ||
# have an ARM build (M1 chip requires emulation). | ||
# Keep synchronized with ci/Dockerfile.circle_build | ||
FROM openjdk:8-buster | ||
|
||
RUN apt-get update \ | ||
&& apt-get install --no-install-recommends -yq \ | ||
gettext \ | ||
ruby \ | ||
default-mysql-client \ | ||
python3 \ | ||
python3-pip \ | ||
nodejs \ | ||
npm \ | ||
wait-for-it \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN apt-get update && \ | ||
apt-get -y install sudo | ||
|
||
RUN npm install --global yarn n | ||
# Upgrade to Node 16, above installs 10. | ||
RUN n 16 | ||
|
||
ENV CLOUD_SDK_VERSION 392.0.0 | ||
|
||
WORKDIR /root | ||
RUN wget https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz -O gcloud.tgz && \ | ||
tar -xf gcloud.tgz && \ | ||
./google-cloud-sdk/install.sh --quiet && \ | ||
./google-cloud-sdk/bin/gcloud components install app-engine-java && \ | ||
rm -rf gcloud.tgz | ||
|
||
ENV PATH=~/node/bin:~/google-cloud-sdk/bin:$PATH | ||
|
||
RUN wget https://dl.google.com/cloudsql/cloud_sql_proxy.linux.amd64 -O /tmp/cloud_sql_proxy \ | ||
&& mv /tmp/cloud_sql_proxy /usr/local/bin && chmod +x /usr/local/bin/cloud_sql_proxy | ||
|
||
# It never makes sense for Gradle to run a daemon within a docker container. | ||
ENV GRADLE_OPTS="-Dorg.gradle.daemon=false" | ||
|
||
ENV GRADLE_VERSION 6.7.1 | ||
|
||
RUN wget "https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip" -O /tmp/gradle.zip \ | ||
&& unzip /tmp/gradle.zip -d /opt/gradle | ||
ENV PATH="/opt/gradle/gradle-${GRADLE_VERSION}/bin:${PATH}" | ||
|
||
# Force a lower concurrent-ruby version, as we only have Ruby 2.3. | ||
RUN gem install activesupport -v 6.1.4.6 | ||
RUN gem install jira-ruby |
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