Skip to content

Commit

Permalink
Updated debian version in dev.docker + added nointeractive frontedn o…
Browse files Browse the repository at this point in the history
…n debian image
  • Loading branch information
gustawdaniel-acaisoft authored and gustawdaniel committed Dec 14, 2021
1 parent 67d6f41 commit ea6ce13
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM debian:stable
MAINTAINER Jeremy Shimko <[email protected]>
ARG DEBIAN_FRONTEND=noninteractive

RUN groupadd -r node && useradd -m -g node node

Expand Down Expand Up @@ -28,7 +29,7 @@ ONBUILD ARG APT_GET_INSTALL
ONBUILD ENV APT_GET_INSTALL $APT_GET_INSTALL

ONBUILD ARG NODE_VERSION
ONBUILD ENV NODE_VERSION ${NODE_VERSION:-8.9.0}
ONBUILD ENV NODE_VERSION ${NODE_VERSION:-14.17.4}

ONBUILD ARG NPM_TOKEN
ONBUILD ENV NPM_TOKEN $NPM_TOKEN
Expand Down
5 changes: 3 additions & 2 deletions dev.dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM debian:jessie
FROM debian:stable
MAINTAINER Jeremy Shimko <[email protected]>
ARG DEBIAN_FRONTEND=noninteractive

RUN groupadd -r node && useradd -m -g node node

Expand Down Expand Up @@ -34,7 +35,7 @@ ONBUILD ARG APT_GET_INSTALL
ONBUILD ENV APT_GET_INSTALL $APT_GET_INSTALL

ONBUILD ARG NODE_VERSION
ONBUILD ENV NODE_VERSION ${NODE_VERSION:-8.9.0}
ONBUILD ENV NODE_VERSION ${NODE_VERSION:-14.17.4}

ONBUILD ARG INSTALL_MONGO
ONBUILD ENV INSTALL_MONGO ${INSTALL_MONGO:-true}
Expand Down
2 changes: 1 addition & 1 deletion scripts/install-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if [ -f $APP_SOURCE_DIR/launchpad.conf ]; then
fi
fi

apt-get install -y --no-install-recommends curl bzip2 bsdtar build-essential python git wget
apt-get install -y --no-install-recommends curl bzip2 libarchive-tools build-essential python git wget


# install gosu
Expand Down
2 changes: 1 addition & 1 deletion scripts/install-meteor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ else

# replace tar command with bsdtar in the install script (bsdtar -xf "$TARBALL_FILE" -C "$INSTALL_TMPDIR")
# https://github.com/jshimko/meteor-launchpad/issues/39
sed -i.bak "s/tar -xzf.*/bsdtar -xf \"\$TARBALL_FILE\" -C \"\$INSTALL_TMPDIR\"/g" /tmp/install_meteor.sh
sed -i.bak "s/tar -xzf.*/tar -xf \"\$TARBALL_FILE\" -C \"\$INSTALL_TMPDIR\"/g" /tmp/install_meteor.sh

# install
printf "\n[-] Installing Meteor $METEOR_VERSION...\n\n"
Expand Down
2 changes: 1 addition & 1 deletion scripts/post-build-cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ rm -rf /opt/nodejs/bin/npm
rm -rf /opt/nodejs/lib/node_modules/npm/

# remove os dependencies
apt-get purge -y --auto-remove apt-transport-https build-essential bsdtar bzip2 ca-certificates curl git python
apt-get purge -y --auto-remove apt-transport-https build-essential libarchive-tools bzip2 ca-certificates curl git python
apt-get -y autoremove
apt-get -y clean
apt-get -y autoclean
Expand Down

0 comments on commit ea6ce13

Please sign in to comment.