Skip to content

Commit

Permalink
feat: add openssl-dev and g++ packages
Browse files Browse the repository at this point in the history
  • Loading branch information
daniloarcidiacono committed Nov 24, 2018
1 parent 7c6fee7 commit 04df23e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 9 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,22 @@ ENV JAVA_ALPINE_VERSION="8.181.13-r0"
ENV GIT_ALPINE_VERSION="2.18.1-r0"
ENV MAVEN_ALPINE_VERSION="3.5.4-r1"
ENV GNUPG_ALPINE_VERSION="2.2.8-r0"
ENV OPENSSL_DEV_ALPINE_VERSION="1.0.2q-r0"
ENV GPP_ALPINE_VERSION="6.4.0-r9"

# The --no-cache option allows to not cache the index locally, which is useful for keeping containers small.
RUN apk upgrade --update && \
apk add --no-cache man man-pages curl bash && \
apk add --no-cache openjdk8="$JAVA_ALPINE_VERSION" && \
apk add --no-cache git="$GIT_ALPINE_VERSION" && \
apk add --no-cache maven="$MAVEN_ALPINE_VERSION" && \
apk add --no-cache gnupg="$GNUPG_ALPINE_VERSION"
apk add --no-cache gnupg="$GNUPG_ALPINE_VERSION" && \
apk add --no-cache openssl-dev="$OPENSSL_DEV_ALPINE_VERSION" && \
apk add --no-cache g++="$GPP_ALPINE_VERSION"

# Fixes npm install of nodegit fails saying: libcurl-gnutls.so.4: cannot open shared object file: No such file or directory
# See https://github.com/adaptlearning/adapt-cli/issues/84#issuecomment-413528490
RUN ln -s /usr/lib/libcurl.so.4 /usr/lib/libcurl-gnutls.so.4

# Install Github's hub tool
RUN curl -sL https://github.com/github/hub/releases/download/v2.6.0/hub-linux-386-2.6.0.tgz | tar xz && \
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ Alpine Linux 3.8 with some preinstalled tools suitable for CI/CD platforms.
* **OpenJDK**: 8.181.13-r0
* **Git**: 2.18.1-r0
* **Maven**: 3.5.4-r1
* **openssl-dev**: 1.0.2q-r0 (needed by nodegit)
* **g++**: 6.4.0-r9 (needed by nodegit)
* **GnuPG**: 2.2.8-r0
* **[hub](https://hub.github.com/)**: 2.6.0
* **[hub](https://hub.github.com/)**: 2.6.0

Please note that versions come from [Alpine 3.8 package ecosystem](https://pkgs.alpinelinux.org/packages?branch=v3.8).

Expand Down

0 comments on commit 04df23e

Please sign in to comment.