Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
open-build-service
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
obs
open-build-service
Commits
7acc20dc
Commit
7acc20dc
authored
Jun 15, 2022
by
Sjoerd Simons
Browse files
Options
Downloads
Patches
Plain Diff
HACKS
parent
296c030a
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#41283
passed
Jun 15, 2022
Stage: docker
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile.backend
+27
-7
27 additions, 7 deletions
Dockerfile.backend
with
27 additions
and
7 deletions
Dockerfile.backend
+
27
−
7
View file @
7acc20dc
# Global ARGs shared by all stages
ARG DEBIAN_FRONTEND=noninteractive
ARG GOPATH=/usr/local/go
# Build aplty
FROM debian:bullseye-slim as builder
ENV LC_ALL=C.UTF-8
ARG GOPATH
ENV GOPATH=${GOPATH}
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
ca-certificates \
gcc \
git \
golang-go \
libc6-dev
RUN git clone https://gitlab.collabora.com/obs/aptly.git $GOPATH/src/gitlab.collabora.com/obs/aptly \
&& cd $GOPATH/src/gitlab.collabora.com/obs/aptly \
&& make install
FROM debian:bullseye-slim as server
FROM debian:bullseye-slim as server
LABEL maintainer Andrej Shadura <andrew.shadura@collabora.co.uk>
LABEL maintainer Andrej Shadura <andrew.shadura@collabora.co.uk>
ENV LC_ALL=C.UTF-8
ENV LC_ALL=C.UTF-8
ARG DEBIAN_FRONTEND=noninteractive
ARG WORKDIR=/tmp/sources
ARG WORKDIR=/tmp/sources
ARG DEBIAN_FRONTEND
ARG GOPATH
# Needs checking what’s actually needed
# Needs checking what’s actually needed
RUN apt-get update \
RUN apt-get update \
...
@@ -16,7 +40,6 @@ RUN apt-get update \
...
@@ -16,7 +40,6 @@ RUN apt-get update \
diffutils \
diffutils \
dpkg-dev \
dpkg-dev \
git \
git \
golang-go \
locales \
locales \
libbssolv-perl \
libbssolv-perl \
libcompress-raw-zlib-perl \
libcompress-raw-zlib-perl \
...
@@ -48,11 +71,6 @@ RUN apt-get update \
...
@@ -48,11 +71,6 @@ RUN apt-get update \
apt-utils \
apt-utils \
reprepro
reprepro
RUN git clone https://gitlab.collabora.com/obs/aptly.git $GOPATH/src/gitlab.collabora.com/obs/aptly \
&& cd $GOPATH/src/gitlab.collabora.com/obs/aptly \
&& make modules install \
&& rm -rf $GOPATH/src/gitlab.collabora.com/obs/aptly
COPY . $WORKDIR
COPY . $WORKDIR
RUN make -C $WORKDIR/dist install
RUN make -C $WORKDIR/dist install
...
@@ -82,6 +100,8 @@ VOLUME /etc/obs
...
@@ -82,6 +100,8 @@ VOLUME /etc/obs
COPY docker/services/aptly/aptly.conf /etc/obs/aptly.conf
COPY docker/services/aptly/aptly.conf /etc/obs/aptly.conf
RUN /opt/configure-backend-user.sh
RUN /opt/configure-backend-user.sh
COPY --from=builder $GOPATH/bin/aptly /usr/local/bin/aptly
RUN mkdir -p /srv/obs/log /srv/obs/run \
RUN mkdir -p /srv/obs/log /srv/obs/run \
&& chmod ug=rwxt /srv/obs/run \
&& chmod ug=rwxt /srv/obs/run \
&& chown obsrun:obsrun -R /srv/obs
&& chown obsrun:obsrun -R /srv/obs
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment