Add Drone cli to image

master
Hugo Thunnissen 2 years ago
parent 2ab3d88f1a
commit 7f12112919

@ -92,7 +92,11 @@ RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
RUN apt-get -y update && DEBIAN_FRONTEND=noninteractive apt-get -y install docker-ce-cli
RUN apt-get -y update && DEBIAN_FRONTEND=noninteractive apt-get -y install docker-ce-cli apt-file
RUN apt-file update
RUN curl -fsSL https://github.com/drone/drone-cli/releases/latest/download/drone_linux_amd64.tar.gz \
| tar -xzf - -C /usr/bin/
ADD . /opt/workspace-repo
WORKDIR /opt/workspace-repo
@ -100,5 +104,3 @@ RUN go build .
RUN cp ./workspace /bin/workspace
ENTRYPOINT [ "/bin/workspace", "entrypoint" ]
#"source ~/dotfiles/environment; dots pkg exec \"$@\"", "--"]

@ -217,8 +217,8 @@ untrack() {
done
}
if [[ -f "$/WORKSPACE_CONFIG_DIR/environment" ]]; then
source "$/WORKSPACE_CONFIG_DIR/environment"
if [[ -f "$WORKSPACE_CONFIG_DIR/environment" ]]; then
source "$WORKSPACE_CONFIG_DIR/environment"
fi
PROMPT_COMMAND='history -a'

Loading…
Cancel
Save