Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ansgar Burchardt
dune-docker
Commits
90463678
Commit
90463678
authored
Aug 21, 2017
by
Ansgar Burchardt
Browse files
document proxy stuff
parent
98d9c272
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
90463678
...
...
@@ -124,7 +124,7 @@ check_interval = 0
executor = "docker"
# Set proxy variables if needed:
#
environment = ["ftp_proxy=http://
<proxy>
:3128", "FTP_PROXY=http://
<proxy>
:3128", "http_proxy=http://
<proxy>
:3128", "HTTP_PROXY=http://
<proxy>
:3128", "https_proxy=http://
<proxy>
:3128", "HTTPS_PROXY=http://
<
proxy
>
:3128", "no_proxy=127.0.0.1,
localhost", "NO_PROXY=127.0.0.1,
localhost"]
environment = ["ftp_proxy=http://
dune-proxy:3128", "http_proxy=http://dune-proxy:3128", "https_proxy=http://dune-
proxy:3128", "no_proxy=127.0.0.1, localhost"]
[runners.docker]
# tls_verify = false
image = "duneci/dune:latest"
...
...
@@ -134,9 +134,39 @@ check_interval = 0
volumes = ["/cache"]
allowed_images = ["duneci/
*
"]
pull_policy = "if-not-present"
# See
[
Proxy setup
](
#proxy-setup
)
below:
network_mode = "gitlab-ci-dune"
# OpenMPI-2 is unhappy with the (too long) default hostnames:
hostname = "ci"
```
See the [documentation of GitLab runner's configuration](https://docs.gitlab.com/runner/configuration/advanced-configuration.html) for details.
Please also keep the [security considerations](https://docs.gitlab.com/runner/security/index.html) in mind.
Proxy setup
-----------
Setup network (once):
```
shell
docker network create --internal --driver=bridge gitlab-ci-dune
```
Update and start proxy:
```
shell
docker stop dune-proxy
docker rm -v dune-proxy
docker create --name dune-proxy
\
--restart always --security-opt no-new-privileges
\
-v /srv/dune-proxy:/srv/squid:ro
\
duneci/proxy
docker network connect gitlab-ci-dune dune-proxy
docker start dune-proxy
```
In gitlab-runner's `config.toml`:
```
TOML
[[runners]]
[runners.docker]
network_mode = "gitlab-ci-dune"
```
proxy/Dockerfile
0 → 100644
View file @
90463678
FROM
debian:stretch
MAINTAINER
Ansgar.Burchardt@tu-dresden.de
RUN
\
rm
-f
/etc/apt/apt.conf.d/docker-gzip-indexes
\
&&
rm
-rf
/var/lib/apt/lists/
*
\
&&
apt-get update
&&
apt-get dist-upgrade
--no-install-recommends
--yes
\
&&
apt-get
install
--no-install-recommends
--yes
\
squid
\
&&
apt-get clean
&&
rm
-rf
/var/lib/apt/lists/
*
EXPOSE
3128
USER
proxy
ENTRYPOINT
["/usr/sbin/squid", "-N", "-f", "/srv/squid/squid.conf"]
Write
Preview
Supports
Markdown
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