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.04MAINTAINER Bitbucket Pipelines# Install base dependenciesRUN 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 npmENV NODE_VERSION=8.9.4 \NVM_DIR=/root/.nvm \NVM_VERSION=0.33.8RUN 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 pathENV NODE_PATH=$NVM_DIR/v$NODE_VERSION/lib/node_modulesENV JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64# Default to UTF-8 file.encodingENV 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 GUIENV DISPLAY=:99# Set the path.ENV PATH=$NVM_DIR:$NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH# Create dirs and usersRUN 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 pipelinesWORKDIR /opt/atlassian/bitbucketci/agent/buildENTRYPOINT /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?
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.
It looks like you're new here. Sign in or register to get started.