Is it possible to see the Dockerfile for default-image:2.02?
https://hub.docker.com/r/atlassian/default-image/
Hi @mehmetatas
Sure, the Dockerfile for default-image:2.02 is:
FROM ubuntu:16.04
MAINTAINER Bitbucket Pipelines
# Install base dependencies
RUN apt-get update \
&& apt-get install -y \
software-properties-common \
build-essential \
wget \
xvfb \
curl \
git \
mercurial \
maven \
openjdk-8-jdk \
ant \
ssh-client \
unzip \
iputils-ping \
&& rm -rf /var/lib/apt/lists/*
# Install nvm with node and npm
ENV NODE_VERSION=8.9.4 \
NVM_DIR=/root/.nvm \
NVM_VERSION=0.33.8
RUN curl https://raw.githubusercontent.com/creationix/nvm/v$NVM_VERSION/install.sh | bash \
&& . $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& nvm use default
# Set node path
ENV NODE_PATH=$NVM_DIR/v$NODE_VERSION/lib/node_modules
ENV JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
# Default to UTF-8 file.encoding
ENV LANG=C.UTF-8 \
LC_ALL=C.UTF-8 \
LANGUAGE=C.UTF-8
# Xvfb provide an in-memory X-session for tests that require a GUI
ENV DISPLAY=:99
# Set the path.
ENV PATH=$NVM_DIR:$NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
# Create dirs and users
RUN mkdir -p /opt/atlassian/bitbucketci/agent/build \
&& sed -i '/[ -z \"PS1\" ] && return/a\\ncase $- in\n*i*) ;;\n*) return;;\nesac' /root/.bashrc \
&& useradd --create-home --shell /bin/bash --uid 1000 pipelines
WORKDIR /opt/atlassian/bitbucketci/agent/build
ENTRYPOINT /bin/bash
Could you please clarify the importance of using the pipelines user and /opt/atlassian/bitbucketci/agent/build folder e.g. for custom images? Are there any specific privileges?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Those details are not important for custom images. Pipelines doesn't require anything special in your build image as it will automatically mount a volume with any necessary scripts required to orchestrate the build. Simply define an image with the custom tooling you need and we'll do the rest :) In fact you can use most pre-built images already available on Dockerhub.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.