Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Y
yocto-ktn
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KED Software Projects
Yocto
yocto-ktn
Commits
15cb2c98
Commit
15cb2c98
authored
4 years ago
by
Julian Bauknecht
Browse files
Options
Downloads
Patches
Plain Diff
Add Dockerfile for Ubuntu 18 Build-Environment
parent
deeaea74
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+3
-0
3 additions, 0 deletions
.gitlab-ci.yml
Dockerfile.18
+64
-0
64 additions, 0 deletions
Dockerfile.18
with
67 additions
and
0 deletions
.gitlab-ci.yml
+
3
−
0
View file @
15cb2c98
...
@@ -24,6 +24,9 @@ build-docker:
...
@@ -24,6 +24,9 @@ build-docker:
-
docker pull $CI_REGISTRY_IMAGE:16 ||
true
-
docker pull $CI_REGISTRY_IMAGE:16 ||
true
-
docker build --cache-from $CI_REGISTRY_IMAGE:16 -t $CI_REGISTRY_IMAGE:16 -f Dockerfile.16 .
-
docker build --cache-from $CI_REGISTRY_IMAGE:16 -t $CI_REGISTRY_IMAGE:16 -f Dockerfile.16 .
-
docker push $CI_REGISTRY_IMAGE:16
-
docker push $CI_REGISTRY_IMAGE:16
-
docker pull $CI_REGISTRY_IMAGE:18 ||
true
-
docker build --cache-from $CI_REGISTRY_IMAGE:18 -t $CI_REGISTRY_IMAGE:18 -f Dockerfile.18 .
-
docker push $CI_REGISTRY_IMAGE:18
-
docker pull $CI_REGISTRY_IMAGE:20 ||
true
-
docker pull $CI_REGISTRY_IMAGE:20 ||
true
-
docker build --cache-from $CI_REGISTRY_IMAGE:20 -t $CI_REGISTRY_IMAGE:20 -f Dockerfile.20 .
-
docker build --cache-from $CI_REGISTRY_IMAGE:20 -t $CI_REGISTRY_IMAGE:20 -f Dockerfile.20 .
-
docker push $CI_REGISTRY_IMAGE:20
-
docker push $CI_REGISTRY_IMAGE:20
This diff is collapsed.
Click to expand it.
Dockerfile.18
0 → 100644
+
64
−
0
View file @
15cb2c98
FROM ubuntu:18.04
# Fix for apt-get errors "Hash sum missmatch"
# See: https://github.com/jenkinsci/docker/issues/543#issuecomment-318356276
RUN printf 'Acquire::http::Pipeline-Depth 0; \n\
Acquire::http::No-Cache true; \n\
Acquire::BrokenProxy true;' > /etc/apt/apt.conf.d/99fixbadproxy
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
build-essential \
ca-certificates \
chrpath \
cpio \
debianutils \
diffstat \
g++ \
gawk \
gcc \
gcc-multilib \
g++-multilib \
gdb-multiarch \
git-core \
iputils-ping \
libncurses5-dev \
libsdl1.2-dev \
libssl-dev \
locales \
nfs-common \
python \
python3 \
python3-pexpect \
python3-pip \
screen \
socat \
sudo \
texinfo \
unzip \
wget \
xz-utils \
vim-common
RUN dpkg-reconfigure locales && \
locale-gen en_US.UTF-8 && \
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
RUN update-ca-certificates
RUN adduser --disabled-password --gecos '' user && \
adduser user sudo && \
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
USER user
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
COPY --chown=user:user . /yocto-ktn/
WORKDIR /yocto-ktn/
# Remove GitLab CI token from remote URL
RUN git remote set-url origin $(git remote get-url origin | sed -E -e "s/(.*)(gitlab-ci-token:.*)@(.*)/\1\3/")
CMD ["/bin/bash", "-c", "source init-env -o build"]
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