Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
9c64acdd
Unverified
Commit
9c64acdd
authored
Aug 09, 2021
by
Edward Thomson
Committed by
GitHub
Aug 09, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5980 from libgit2/ethomson/dockerfile
docker: remove the entrypoint
parents
962d78d3
b140e22e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
33 deletions
+30
-33
.github/workflows/main.yml
+11
-9
.github/workflows/nightly.yml
+7
-5
ci/docker/bionic
+4
-5
ci/docker/entrypoint.sh
+0
-4
ci/docker/focal
+4
-5
ci/docker/xenial
+4
-5
No files found.
.github/workflows/main.yml
View file @
9c64acdd
...
@@ -11,7 +11,7 @@ on:
...
@@ -11,7 +11,7 @@ on:
env
:
env
:
docker-registry
:
docker.pkg.github.com
docker-registry
:
docker.pkg.github.com
docker-config-path
:
ci/docker
docker-config-path
:
source/
ci/docker
jobs
:
jobs
:
# Build the docker container images that we will use for our Linux
# Build the docker container images that we will use for our Linux
...
@@ -55,7 +55,7 @@ jobs:
...
@@ -55,7 +55,7 @@ jobs:
if
:
matrix.container.qemu ==
true
if
:
matrix.container.qemu ==
true
-
name
:
Download existing container
-
name
:
Download existing container
run
:
|
run
:
|
"${{ github.workspace }}/ci/getcontainer.sh" "${{ matrix.container.name }}" "${{ matrix.container.dockerfile }}"
"${{ github.workspace }}/
source/
ci/getcontainer.sh" "${{ matrix.container.name }}" "${{ matrix.container.dockerfile }}"
env
:
env
:
DOCKER_REGISTRY
:
${{ env.docker-registry }}
DOCKER_REGISTRY
:
${{ env.docker-registry }}
GITHUB_TOKEN
:
${{ secrets.github_token }}
GITHUB_TOKEN
:
${{ secrets.github_token }}
...
@@ -206,9 +206,10 @@ jobs:
...
@@ -206,9 +206,10 @@ jobs:
-
name
:
Check out repository
-
name
:
Check out repository
uses
:
actions/checkout@v2
uses
:
actions/checkout@v2
with
:
with
:
path
:
source
fetch-depth
:
0
fetch-depth
:
0
-
name
:
Set up build environment
-
name
:
Set up build environment
run
:
ci/setup-${{ matrix.platform.setup-script }}.sh
run
:
source/
ci/setup-${{ matrix.platform.setup-script }}.sh
shell
:
bash
shell
:
bash
if
:
matrix.platform.setup-script != ''
if
:
matrix.platform.setup-script != ''
-
name
:
Setup QEMU
-
name
:
Setup QEMU
...
@@ -216,7 +217,7 @@ jobs:
...
@@ -216,7 +217,7 @@ jobs:
if
:
matrix.platform.container.qemu ==
true
if
:
matrix.platform.container.qemu ==
true
-
name
:
Download container
-
name
:
Download container
run
:
|
run
:
|
"${{ github.workspace }}/ci/getcontainer.sh" "${{ matrix.platform.container.name }}" "${{ matrix.platform.container.dockerfile }}"
"${{ github.workspace }}/
source/
ci/getcontainer.sh" "${{ matrix.platform.container.name }}" "${{ matrix.platform.container.dockerfile }}"
env
:
env
:
DOCKER_REGISTRY
:
${{ env.docker-registry }}
DOCKER_REGISTRY
:
${{ env.docker-registry }}
GITHUB_TOKEN
:
${{ secrets.github_token }}
GITHUB_TOKEN
:
${{ secrets.github_token }}
...
@@ -233,8 +234,9 @@ jobs:
...
@@ -233,8 +234,9 @@ jobs:
if [ -n "${{ matrix.platform.container.name }}" ]; then
if [ -n "${{ matrix.platform.container.name }}" ]; then
docker run \
docker run \
--rm \
--rm \
-v "$(pwd):/home/libgit2/source" \
--user libgit2:libgit2 \
-w /home/libgit2/source \
-v "$(pwd)/source:/home/libgit2/source" \
-w /home/libgit2 \
-e ASAN_SYMBOLIZER_PATH \
-e ASAN_SYMBOLIZER_PATH \
-e CC \
-e CC \
-e CFLAGS \
-e CFLAGS \
...
@@ -247,11 +249,11 @@ jobs:
...
@@ -247,11 +249,11 @@ jobs:
-e TSAN_OPTIONS \
-e TSAN_OPTIONS \
-e UBSAN_OPTIONS \
-e UBSAN_OPTIONS \
${{ env.docker-registry-container-sha }} \
${{ env.docker-registry-container-sha }} \
/bin/bash -c "mkdir build && cd build && ../
ci/build.sh && ..
/ci/test.sh"
/bin/bash -c "mkdir build && cd build && ../
source/ci/build.sh && ../source
/ci/test.sh"
else
else
mkdir build && cd build
mkdir build && cd build
../ci/build.sh
../
source/
ci/build.sh
../ci/test.sh
../
source/
ci/test.sh
fi
fi
shell
:
bash
shell
:
bash
...
...
.github/workflows/nightly.yml
View file @
9c64acdd
...
@@ -215,6 +215,7 @@ jobs:
...
@@ -215,6 +215,7 @@ jobs:
-
name
:
Check out repository
-
name
:
Check out repository
uses
:
actions/checkout@v2
uses
:
actions/checkout@v2
with
:
with
:
path
:
source
fetch-depth
:
0
fetch-depth
:
0
-
name
:
Set up build environment
-
name
:
Set up build environment
run
:
ci/setup-${{ matrix.platform.setup-script }}.sh
run
:
ci/setup-${{ matrix.platform.setup-script }}.sh
...
@@ -242,8 +243,9 @@ jobs:
...
@@ -242,8 +243,9 @@ jobs:
if [ -n "${{ matrix.platform.container.name }}" ]; then
if [ -n "${{ matrix.platform.container.name }}" ]; then
docker run \
docker run \
--rm \
--rm \
-v "$(pwd):/home/libgit2/source" \
--user libgit2:libgit2 \
-w /home/libgit2/source \
-v "$(pwd)/source:/home/libgit2/source" \
-w /home/libgit2 \
-e ASAN_SYMBOLIZER_PATH \
-e ASAN_SYMBOLIZER_PATH \
-e CC \
-e CC \
-e CFLAGS \
-e CFLAGS \
...
@@ -255,11 +257,11 @@ jobs:
...
@@ -255,11 +257,11 @@ jobs:
-e SKIP_SSH_TESTS \
-e SKIP_SSH_TESTS \
-e TSAN_OPTIONS \
-e TSAN_OPTIONS \
${{ env.docker-registry-container-sha }} \
${{ env.docker-registry-container-sha }} \
/bin/bash -c "mkdir build && cd build && ../
ci/build.sh && ..
/ci/test.sh"
/bin/bash -c "mkdir build && cd build && ../
source/ci/build.sh && ../source
/ci/test.sh"
else
else
mkdir build && cd build
mkdir build && cd build
../ci/build.sh
../
source/
ci/build.sh
../ci/test.sh
../
source/
ci/test.sh
fi
fi
shell
:
bash
shell
:
bash
...
...
ci/docker/bionic
View file @
9c64acdd
...
@@ -36,9 +36,8 @@ RUN cd /tmp && \
...
@@ -36,9 +36,8 @@ RUN cd /tmp && \
cd .. && \
cd .. && \
rm -rf mbedtls-2.16.2
rm -rf mbedtls-2.16.2
FROM mbedtls AS configure
FROM mbedtls AS adduser
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN useradd --shell /bin/bash libgit2 --create-home
RUN chmod a+x /usr/local/bin/entrypoint.sh
RUN mkdir /var/run/sshd
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
FROM adduser AS configure
RUN mkdir /var/run/sshd
ci/docker/entrypoint.sh
deleted
100644 → 0
View file @
962d78d3
#!/bin/bash -e
useradd
--shell
/bin/bash libgit2
chown
--recursive
libgit2:libgit2 /home/libgit2
exec sudo
--preserve-env
--set-home
--user
=
libgit2
"
$@
"
ci/docker/focal
View file @
9c64acdd
...
@@ -72,9 +72,8 @@ RUN cd /tmp && \
...
@@ -72,9 +72,8 @@ RUN cd /tmp && \
cd .. && \
cd .. && \
rm -rf valgrind-3.15.0
rm -rf valgrind-3.15.0
FROM valgrind AS configure
FROM valgrind AS adduser
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN useradd --shell /bin/bash libgit2 --create-home
RUN chmod a+x /usr/local/bin/entrypoint.sh
RUN mkdir /var/run/sshd
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
FROM adduser AS configure
RUN mkdir /var/run/sshd
ci/docker/xenial
View file @
9c64acdd
...
@@ -59,9 +59,8 @@ RUN cd /tmp && \
...
@@ -59,9 +59,8 @@ RUN cd /tmp && \
cd .. && \
cd .. && \
rm -rf valgrind-3.15.0
rm -rf valgrind-3.15.0
FROM valgrind AS configure
FROM valgrind AS adduser
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN useradd --shell /bin/bash libgit2 --create-home
RUN chmod a+x /usr/local/bin/entrypoint.sh
RUN mkdir /var/run/sshd
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
FROM adduser AS configure
RUN mkdir /var/run/sshd
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment