cleanup
intsall fix attempts add pyenv path after install use https repository install apt-utils set FAST_MODE in bootstrap.sh keep truthy FAST_MODE variable source bashrc after linking clean up errors further install fixes further cleanup fix fisher install chmod +x install remove source bashrc from make
This commit is contained in:
17
Dockerfile
17
Dockerfile
@@ -4,20 +4,20 @@ from ubuntu:bionic
|
||||
# (usually) Cached steps
|
||||
# ---------------------------------------------------------------------------- #
|
||||
|
||||
# Set variables up, FAST_MODE to prevent git and upgrade
|
||||
# Set FAST_MODE to prevent git and upgrade
|
||||
ENV FAST_MODE="true"
|
||||
ENV WORKSPACE="$HOME/workspace"
|
||||
|
||||
# Install sudo for compatibility, git since it is skipped, make
|
||||
# Triple quiet mode (-qq implies -y, pipe to /dev/null)
|
||||
RUN apt-get -qq update && \
|
||||
apt-get -qq install sudo git make \
|
||||
< /dev/null > /dev/null
|
||||
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
|
||||
RUN apt-get -y update \
|
||||
&& apt-get -y install sudo git make
|
||||
|
||||
# Create user with sudo priviledge
|
||||
ENV USER="test-user"
|
||||
RUN useradd --create-home -m $USER && \
|
||||
adduser $USER sudo
|
||||
RUN useradd --create-home -m $USER \
|
||||
&& adduser $USER sudo
|
||||
RUN echo "$USER ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
||||
|
||||
# ---------------------------------------------------------------------------- #
|
||||
@@ -28,9 +28,6 @@ RUN echo "$USER ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
||||
ADD --chown=test-user . "$WORKSPACE/dotfiles"
|
||||
WORKDIR "$WORKSPACE/dotfiles"
|
||||
|
||||
# Allow execution
|
||||
RUN chmod +x ./bootstrap.sh
|
||||
|
||||
# ---------------------------------------------------------------------------- #
|
||||
# Install steps
|
||||
# ---------------------------------------------------------------------------- #
|
||||
@@ -44,4 +41,4 @@ RUN make install
|
||||
# ---------------------------------------------------------------------------- #
|
||||
|
||||
# Run tests
|
||||
RUN make test || true
|
||||
CMD ["make", "test"]
|
||||
|
||||
Reference in New Issue
Block a user