Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
aa4551a
Updating awscli version.
adrian-kontainers Aug 24, 2018
b15e89d
sbt 1.1.6
pjfanning Sep 17, 2018
6d2975f
Merge pull request #1 from pjfanning/patch-1
klclee Sep 19, 2018
ad055f3
updated java version to avoid https://github.com/docker-library/openj…
Sep 19, 2018
32fff13
upgrade sbt/scala/java versions
Dec 3, 2018
c3a0f1f
Merge pull request #2 from pjfanning/master
klclee Dec 4, 2018
f424a1e
jdk11 build
Jan 1, 2019
b288ca7
use apt-get
Jan 1, 2019
921d105
zulu jdk
Jan 1, 2019
cc769c1
zulu jdk 11
Jan 9, 2019
a727970
Update README.md
pjfanning Jan 9, 2019
8cc7031
use docker latest as base image
Jan 9, 2019
4c9f496
Merge pull request #3 from pjfanning/master
klclee Jan 9, 2019
624d156
upgrade node
Mar 5, 2019
33d9108
upgrade java due to occasional sig faults
Mar 8, 2019
307c67c
Merge pull request #4 from pjfanning/node-upgrade
klclee Mar 13, 2019
0a43bc2
updated
Mar 13, 2019
e1833ec
change node version
Jul 7, 2019
b20c86d
upgrade zulu jdk
Jul 26, 2019
3f1de10
Merge pull request #5 from pjfanning/zulu-11.0.4
klclee Jul 26, 2019
c20350f
java 11.0.6 scala 2.13.1 sbt 1.3.7
Jan 25, 2020
bccad5a
Merge pull request #1 from pjfanning/java-11.0.6
pjfanning Jan 27, 2020
ab12f9a
sbt upgrade
Jan 27, 2020
9fe931c
Merge branch 'java-11.0.6'
Jan 27, 2020
94913b3
java 14
Mar 18, 2020
5fa2d3b
sbt 1.3.9
pjfanning Mar 31, 2020
d9ebf4d
sbt 1.3.10
pjfanning Apr 16, 2020
3fbe7ec
java 14.0.1
Apr 19, 2020
48d95b9
scala 2.13.2
Apr 23, 2020
25f1269
sbt 1.3.11
May 29, 2020
371ec4a
Update README.md
pjfanning May 31, 2020
6821387
sbt 1.3.12
May 31, 2020
716cf2d
scala 2.13.3
Jun 26, 2020
8e62d27
sbt 1.3.13
Jun 28, 2020
ef82372
java 14.0.2
Jul 21, 2020
6253683
sbt 1.4.0
Oct 5, 2020
84c2c58
try python3
Oct 5, 2020
45a839c
Update README.md
pjfanning Oct 5, 2020
8f2f536
SBT_VERSION 1.4.1
pjfanning Oct 19, 2020
7633a3d
Update Dockerfile
pjfanning Oct 19, 2020
4c74408
Update README.md
pjfanning Nov 2, 2020
65e4bea
Update Dockerfile
pjfanning Nov 2, 2020
38082ee
zulu15 build
pjfanning Nov 12, 2020
35f5823
latest versions
pjfanning Nov 13, 2020
1a4d44d
Update Dockerfile
pjfanning Nov 13, 2020
e865eaf
Update Dockerfile
pjfanning Nov 13, 2020
aa406e1
sbt 1.4.3
pjfanning Nov 16, 2020
4d7b9ef
Update README.md
pjfanning Nov 16, 2020
b7579b9
scala 2.13.4
pjfanning Nov 20, 2020
97a5cdd
sbt 1.4.4
pjfanning Nov 23, 2020
cbb5471
sbt 1.4.5
pjfanning Dec 21, 2020
d116b38
sbt 1.4.6
pjfanning Dec 24, 2020
4c271ff
Update Dockerfile
pjfanning Jan 27, 2021
0be4fca
sbt 1.4.7
pjfanning Jan 31, 2021
47fbeba
Update README.md
pjfanning Jan 31, 2021
231a527
scalaVersion 2.13.5
pjfanning Feb 23, 2021
7041e8c
Update README.md
pjfanning Mar 8, 2021
f1bd52d
sbt 1.4.8
pjfanning Mar 8, 2021
0c269ec
Update Dockerfile
pjfanning Mar 8, 2021
0dd382b
Merge branch 'master' of https://github.com/pjfanning/docker_snipets
pjfanning Mar 8, 2021
47f658d
no need to install yarn - already in base image
pjfanning Mar 8, 2021
ba23ed4
sbt 1.4.9
pjfanning Mar 10, 2021
cd9d43c
sbt 1.5.0
pjfanning Apr 6, 2021
0195a44
sbt 1.5.1
pjfanning Apr 26, 2021
61df74f
zulu 11.0.11
pjfanning Apr 30, 2021
f1ffa23
sbt 1.5.2
pjfanning May 10, 2021
8ab9166
scala 2.13.6
pjfanning May 17, 2021
da5574e
sbt 1.5.3
pjfanning Jun 3, 2021
6f5de9b
sbt 1.5.4
pjfanning Jun 14, 2021
0506c71
sbt 1.5.5
pjfanning Jul 12, 2021
3baa543
jdk11.0.12
pjfanning Jul 28, 2021
e62f3e2
scala 2.13.7 and protoc
Nov 5, 2021
0678339
Merge pull request #7 from sentenza/scala-2.13.7-bump
sentenza Nov 5, 2021
198dcc6
Merge pull request #1 from sentenza/scala-2.13.7-bump
sentenza Nov 5, 2021
124ed31
fix protoc compilation
Nov 5, 2021
c5b50ce
Update to sbt v1.5.6
Dec 14, 2021
e392ef4
Merge pull request #8 from sentenza/fix-protoc
sentenza Dec 14, 2021
6683466
upgrade sbt
Dec 29, 2021
4d0d1b5
Merge pull request #9 from sentenza/sbt-161
sentenza Dec 29, 2021
26c854f
chore: ignore idea files
Jan 12, 2022
3ed546e
creating a new base image
Jan 12, 2022
ed7d382
Merge branch 'master' of github.com:sentenza/docker_snippets
Jan 12, 2022
173d1b8
Merge branch 'master' into zulu-ubuntu-openjdk-11
Jan 12, 2022
df64c77
Zulu JDK 11+
Jan 12, 2022
3531da2
chore: 2.13.7
Jan 12, 2022
95f4727
Add curl
Jan 12, 2022
723b8be
chore: add curl
Jan 12, 2022
8e8d778
Merge pull request #11 from sentenza/zulu-ubuntu-openjdk-11
klclee Jan 12, 2022
4183d38
Zulu ubuntu openjdk 11 (#1)
sentenza Jan 12, 2022
4915860
Merge branch 'kontainers:master' into master
sentenza Jan 12, 2022
47b41e1
bump scala version
Jan 13, 2022
ccfd395
Merge pull request #12 from sentenza/scala-2138
sentenza Jan 13, 2022
3b9f02d
enable docker in containers
Jan 17, 2022
118418a
bump Scala v2.13.8 and sbt v1.6.2
sentenza Feb 1, 2022
4666f36
Merge pull request #13 from sentenza/docker-in-docker
sentenza Feb 8, 2022
b592958
Target /etc instead of /root
sentenza May 20, 2022
5d3b63e
Merge pull request #14 from sentenza/master
klclee May 20, 2022
d3663f2
Bump sbt and JDK
Sep 6, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.idea/*
/.idea
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Docker snippets.

Just a bunch of docker file I needed over time.
Just a bunch of docker file we needed over time.

## docker_base_zulujdk_11_sbt

At the moment the base image is using Alpine Linux and Azul JDK and precisely zulu11.50.19 JDK 11.0.12 also described here https://docs.azul.com/core/zulu-openjdk/release-notes/october-2021

The full list of images available can be seen here https://cdn.azul.com/zulu/bin/ and we are using https://cdn.azul.com/zulu/bin/zulu11.50.19-ca-jdk11.0.12-linux_musl_x64.tar.gz

## docker_base_openjdk_8_sbt

Expand All @@ -14,5 +20,3 @@ Ruby 2.3 that needed docker:latest as base
## docker_mongodb_2

Mongodb 2.6 image


12 changes: 6 additions & 6 deletions docker_base_openjdk_8_sbt/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM docker:latest
ENV LANG C.UTF-8

ENV SCALA_VERSION 2.12.4
ENV SBT_VERSION 1.1.4
ENV SCALA_VERSION 2.12.7
ENV SBT_VERSION 1.2.7

# add a simple script that can auto-detect the appropriate JAVA_HOME value
# based on whether the JDK or only the JRE is installed
Expand All @@ -16,8 +16,8 @@ RUN { \
ENV JAVA_HOME /usr/lib/jvm/java-1.8-openjdk
ENV PATH $PATH:/usr/lib/jvm/java-1.8-openjdk/jre/bin:/usr/lib/jvm/java-1.8-openjdk/bin

ENV JAVA_VERSION 8u151
ENV JAVA_ALPINE_VERSION 8.131.11-r2
ENV JAVA_VERSION 8u181
ENV JAVA_ALPINE_VERSION 8.181.13-r0

RUN set -x \
&& apk add --no-cache \
Expand All @@ -33,14 +33,14 @@ RUN apk add --update \
postgresql-dev \
curl \
bash \
jq \
jq \
&& rm -rf /var/cache/apk/*


WORKDIR /root

RUN \
pip install awscli && \
pip install awscli && \
curl -fsL https://downloads.typesafe.com/scala/$SCALA_VERSION/scala-$SCALA_VERSION.tgz | tar xfz - -C /root/ && \
echo >> /root/.bashrc && \
echo 'export PATH=~/scala-$SCALA_VERSION/bin:$PATH' >> /root/.bashrc
Expand Down
2 changes: 1 addition & 1 deletion docker_base_openjdk_8_sbt/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# docker_base_openjdk_8_sbt

openjdk 8 scala 2.11.7 and sbt 1.0.2
openjdk 8 scala 2.12.7 and sbt 1.2.7
53 changes: 53 additions & 0 deletions docker_base_zulujdk_11_0_12_sbt/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
FROM docker:latest
ENV LANG C.UTF-8

ENV SCALA_VERSION 2.13.7
ENV SBT_VERSION 1.6.1

RUN apk add --update \
python3 \
python3-dev \
py3-pip \
build-base \
postgresql-client \
postgresql-dev \
curl \
wget \
bash \
jq \
openssl \
libc6-compat \
gcompat \
protoc \
&& rm -rf /var/cache/apk/*

RUN ZULU_ARCH=zulu11.50.19-ca-jdk11.0.12-linux_musl_x64.tar.gz && \
INSTALL_DIR=/usr/lib/jvm && \
BIN_DIR=/usr/bin && \
MAN_DIR=/usr/share/man/man1 && \
ZULU_DIR=$( basename ${ZULU_ARCH} .tar.gz ) && \
wget -q https://cdn.azul.com/zulu/bin/${ZULU_ARCH} && \
mkdir -p ${INSTALL_DIR} && \
tar -xf ./${ZULU_ARCH} -C ${INSTALL_DIR} && rm -f ${ZULU_ARCH} && \
cd ${BIN_DIR} && find ${INSTALL_DIR}/${ZULU_DIR}/bin -type f -perm -a=x -exec ln -s {} . \; && \
mkdir -p ${MAN_DIR} && \
cd ${MAN_DIR} && find ${INSTALL_DIR}/${ZULU_DIR}/man/man1 -type f -name "*.1" -exec ln -s {} . \; && \
java -version

WORKDIR /root

RUN \
pip install awscli && \
wget "https://downloads.typesafe.com/scala/${SCALA_VERSION}/scala-${SCALA_VERSION}.tgz" && \
tar -zxf "scala-${SCALA_VERSION}.tgz" && \
echo >> /root/.bashrc && \
echo 'export PATH=~/scala-$SCALA_VERSION/bin:$PATH' >> /root/.bashrc

RUN \
wget https://github.com/sbt/sbt/releases/download/v$SBT_VERSION/sbt-$SBT_VERSION.tgz && \
tar -zxf sbt-$SBT_VERSION.tgz && \
echo >> /root/.bashrc && echo 'export PATH=/root/sbt/bin:$PATH' >> /root/.bashrc

COPY build.sbt .
#ADD schedule-grpc.tar.gz /root/sailing_schedule
RUN ./sbt/bin/sbt sbtVersion compile && rm build.sbt
45 changes: 45 additions & 0 deletions docker_base_zulujdk_11_0_12_sbt/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# docker_base_zulujdk_11_sbt

zulu openjdk 11.0.12, scala 2.13.7 and sbt 1.6.1

## Versions

```
bash-5.1# java -version
openjdk version "11.0.12" 2021-07-20 LTS
OpenJDK Runtime Environment Zulu11.50+19-CA (build 11.0.12+7-LTS)
OpenJDK 64-Bit Server VM Zulu11.50+19-CA (build 11.0.12+7-LTS, mixed mode)
bash-5.1# protoc --version
libprotoc 3.15.7
```

## Build and run the image

```
docker build -t "docker_base_zulujdk_11_sbt:jdk11.0.12_sbt1.6.1" .
docker run --entrypoint sh -it docker_base_zulujdk_11_sbt:jdk11.0.12_sbt1.6.1
```

## Test the image locally against an actual sbt project
At first you have to export you current sbt project that you want to test within this Docker image:

```
git archive "<GIT-BRANCH>" | gzip > your_project.tar.gz
```

Copy the tarball into this folder and use the Docker [ADD command]

```
COPY build.sbt .
// Add the project into your container:
ADD your_project.tar.gz /root/your_project
RUN ./sbt/bin/sbt sbtVersion compile && rm build.sbt
```

Run the container and then compile the project

```
docker run --entrypoint bash -it docker_base_zulujdk_11_sbt:jdk11.0.12_sbt1.6.1
```


1 change: 1 addition & 0 deletions docker_base_zulujdk_11_0_12_sbt/build.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
scalaVersion := "2.13.7"
2 changes: 2 additions & 0 deletions docker_base_zulujdk_11_0_12_sbt/project/build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sbt.version=1.6.1

49 changes: 49 additions & 0 deletions docker_base_zulujdk_14_sbt/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
FROM docker:latest
ENV LANG C.UTF-8

ENV SCALA_VERSION 2.13.4
ENV SBT_VERSION 1.4.4

RUN apk add --update \
python3 \
python3-dev \
py3-pip \
build-base \
postgresql-client \
postgresql-dev \
curl \
wget \
bash \
jq \
openssl \
&& rm -rf /var/cache/apk/*

RUN ZULU_ARCH=zulu14.29.23-ca-jdk14.0.2-linux_musl_x64.tar.gz && \
INSTALL_DIR=/usr/lib/jvm && \
BIN_DIR=/usr/bin && \
MAN_DIR=/usr/share/man/man1 && \
ZULU_DIR=$( basename ${ZULU_ARCH} .tar.gz ) && \
wget -q https://cdn.azul.com/zulu/bin/${ZULU_ARCH} && \
mkdir -p ${INSTALL_DIR} && \
tar -xf ./${ZULU_ARCH} -C ${INSTALL_DIR} && rm -f ${ZULU_ARCH} && \
cd ${BIN_DIR} && find ${INSTALL_DIR}/${ZULU_DIR}/bin -type f -perm -a=x -exec ln -s {} . \; && \
mkdir -p ${MAN_DIR} && \
cd ${MAN_DIR} && find ${INSTALL_DIR}/${ZULU_DIR}/man/man1 -type f -name "*.1" -exec ln -s {} . \; && \
java -version

WORKDIR /root

RUN \
pip install awscli && \
wget "https://downloads.typesafe.com/scala/${SCALA_VERSION}/scala-${SCALA_VERSION}.tgz" && \
tar -zxf "scala-${SCALA_VERSION}.tgz" && \
echo >> /root/.bashrc && \
echo 'export PATH=~/scala-$SCALA_VERSION/bin:$PATH' >> /root/.bashrc

RUN \
wget https://github.com/sbt/sbt/releases/download/v$SBT_VERSION/sbt-$SBT_VERSION.tgz && \
tar -zxf sbt-$SBT_VERSION.tgz && \
echo >> /root/.bashrc && echo 'export PATH=/root/sbt/bin:$PATH' >> /root/.bashrc

COPY build.sbt .
RUN ./sbt/bin/sbt sbtVersion compile && rm build.sbt
3 changes: 3 additions & 0 deletions docker_base_zulujdk_14_sbt/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# docker_base_zulujdk_14_sbt

zulu openjdk 14.0.2, scala 2.13.4 and sbt 1.4.4
1 change: 1 addition & 0 deletions docker_base_zulujdk_14_sbt/build.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
scalaVersion := "2.13.4"
49 changes: 49 additions & 0 deletions docker_base_zulujdk_15_sbt/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
FROM docker:latest
ENV LANG C.UTF-8

ENV SCALA_VERSION 2.13.4
ENV SBT_VERSION 1.4.6

RUN apk add --update \
python3 \
python3-dev \
py3-pip \
build-base \
postgresql-client \
postgresql-dev \
curl \
wget \
bash \
jq \
openssl \
&& rm -rf /var/cache/apk/*

RUN ZULU_ARCH=zulu15.28.13-ca-jdk15.0.1-linux_musl_x64.tar.gz && \
INSTALL_DIR=/usr/lib/jvm && \
BIN_DIR=/usr/bin && \
MAN_DIR=/usr/share/man/man1 && \
ZULU_DIR=$( basename ${ZULU_ARCH} .tar.gz ) && \
wget -q https://cdn.azul.com/zulu/bin/${ZULU_ARCH} && \
mkdir -p ${INSTALL_DIR} && \
tar -xf ./${ZULU_ARCH} -C ${INSTALL_DIR} && rm -f ${ZULU_ARCH} && \
cd ${BIN_DIR} && find ${INSTALL_DIR}/${ZULU_DIR}/bin -type f -perm -a=x -exec ln -s {} . \; && \
mkdir -p ${MAN_DIR} && \
cd ${MAN_DIR} && find ${INSTALL_DIR}/${ZULU_DIR}/man/man1 -type f -name "*.1" -exec ln -s {} . \; && \
java -version

WORKDIR /root

RUN \
pip install awscli && \
wget "https://downloads.typesafe.com/scala/${SCALA_VERSION}/scala-${SCALA_VERSION}.tgz" && \
tar -zxf "scala-${SCALA_VERSION}.tgz" && \
echo >> /root/.bashrc && \
echo 'export PATH=~/scala-$SCALA_VERSION/bin:$PATH' >> /root/.bashrc

RUN \
wget https://github.com/sbt/sbt/releases/download/v$SBT_VERSION/sbt-$SBT_VERSION.tgz && \
tar -zxf sbt-$SBT_VERSION.tgz && \
echo >> /root/.bashrc && echo 'export PATH=/root/sbt/bin:$PATH' >> /root/.bashrc

COPY build.sbt .
RUN ./sbt/bin/sbt sbtVersion compile && rm build.sbt
3 changes: 3 additions & 0 deletions docker_base_zulujdk_15_sbt/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# docker_base_zulujdk_15_sbt

zulu openjdk 15.0.1, scala 2.13.4 and sbt 1.4.6
1 change: 1 addition & 0 deletions docker_base_zulujdk_15_sbt/build.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
scalaVersion := "2.13.4"
16 changes: 8 additions & 8 deletions ember-cli/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:6.11.3
FROM node:10.16.0

# ember server on port 4200
# livereload server on port 49153 (changed in v2.11.1 from 49152)
Expand All @@ -11,7 +11,7 @@ CMD ["ember", "server"]
# Install watchman build dependencies
RUN \
apt-get update -y &&\
apt-get install -y python-dev
apt-get install -y python-dev python-pip

# install watchman
# Note: See the README.md to find out how to increase the
Expand All @@ -28,7 +28,8 @@ RUN \

# Install ember dev dependencies
RUN \
npm install -g bower@1.8.0
npm install -g bower@1.8.8 \
npm i -g npm

# install official phantomjs binaries
RUN \
Expand All @@ -54,18 +55,17 @@ RUN apt-get update &&\
RUN \
sed -i 's/"$@"/--no-sandbox "$@"/g' /opt/google/chrome/google-chrome

RUN \
curl -o- -L https://yarnpkg.com/install.sh | bash

# Install ember-cli
RUN \
yarn global add ember-cli@3.1.2
yarn global add ember-cli@3.10.1

RUN \
yarn global add firebase-tools

RUN \
apt-get update &&\
apt-get install -y \
awscli \
jq

RUN \
pip install awscli
40 changes: 40 additions & 0 deletions zulu_openjdk_11/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
FROM azul/zulu-openjdk:11

ENV SCALA_VERSION 2.13.8
ENV SBT_VERSION 1.7.1

WORKDIR /etc

#SHELL ["/bin/bash", "-c"]

RUN \
apt-get -qq update && \
apt-get install -yqq \
wget \
curl \
protobuf-compiler \
python3 \
python3-pip \
jq \
postgresql-client \
openssl \
docker.io

RUN \
pip install awscli && \
wget "https://downloads.typesafe.com/scala/${SCALA_VERSION}/scala-${SCALA_VERSION}.tgz" && \
tar -zxf "scala-${SCALA_VERSION}.tgz" && \
rm scala-${SCALA_VERSION}.tgz && \
echo >> /etc/bash.bashrc && \
echo 'export PATH=/etc/scala-$SCALA_VERSION/bin:$PATH' >> /etc/bash.bashrc

RUN \
wget https://github.com/sbt/sbt/releases/download/v$SBT_VERSION/sbt-$SBT_VERSION.tgz && \
tar -zxf sbt-$SBT_VERSION.tgz && \
rm sbt-$SBT_VERSION.tgz && \
echo >> /etc/bash.bashrc && echo 'export PATH=/etc/sbt/bin:$PATH' >> /etc/bash.bashrc

COPY build.sbt .
#ADD trip.tar.gz /root/trip
#ADD env.sh /root/env.sh
RUN ./sbt/bin/sbt sbtVersion compile && rm build.sbt
Loading