Atlassian build image w/o docker-compose
10K+
Commpared to the original atlassian Dockerfile
The image has been built using this command
docker buildx build --tag bit --platform linux/amd64,linux/arm64 -t multi-platform .
Build using the following Dockerfile ..
FROM ubuntu:24.04
LABEL maintainer="Jens Arnt<[email protected]>"
ARG TARGETARCH
# Args
ARG BUILD_DATE
ARG REVISION
ARG BUILD_VERSION
ARG DEBIAN_FRONTEND=noninteractive
# Labels
LABEL \
org.opencontainers.image.authors="Jens Arnt <[email protected]>" \
org.opencontainers.image.created=$BUILD_DATE \
org.opencontainers.image.title="jarnt/atlassian-buildimage" \
org.opencontainers.image.description="Default 2404 image for Bitbucket Pipelines" \
org.opencontainers.image.revision=$REVISION \
org.opencontainers.image.vendor="iDoer" \
org.opencontainers.image.version=$BUILD_VERSION
# Remove distro version of docker
RUN for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do apt-get purge -y $pkg; exit 0; done
# Add the repository to Apt sources:
RUN echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
tee /etc/apt/sources.list.d/docker.list
# Install base dependencies
RUN apt-get update \
&& apt-get install -y \
software-properties-common \
&& add-apt-repository ppa:git-core/ppa -y \
&& add-apt-repository ppa:git-ftp/ppa -y \
&& apt-get install -y \
autoconf \
build-essential \
ca-certificates \
pkg-config \
wget \
xvfb \
curl \
git \
git-ftp \
ant \
ssh-client \
unzip \
iputils-ping \
zip \
jq \
gettext-base \
tar \
parallel \
&& rm -rf /var/lib/apt/lists/*
#SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# 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
# 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 1100 pipelines
WORKDIR /opt/atlassian/bitbucketci/agent/build
ENTRYPOINT ["/bin/bash" ]
Content type
Image
Digest
sha256:6c263d2d3…
Size
364.1 MB
Last updated
almost 2 years ago
docker pull jarnt/atlassian-buildimage:v1.1.0