Codingweekend HS23

This article is only for the participants of the codingweekend HS23. Most of the configurations don't work if your are not in the codingweekend WLAN/Network.

NPM-Cache

needed local configuration

$ npm config set registry http://local-npm.vseth.ethz.ch

or

$ yarn config set registry http://local-npm.vseth.ethz.ch

After the weekend, don’t forget to unset/delete the config!

Used software: https://github.com/stackdumper/npm-cache-proxy

Docker-Cache

The Docker Cache is not quiet easy to configure. It needs to

# Add docker daemon config to pointing Docker to use the proxy
$ echo "{"proxies":{'http-proxy':'http://local-docker.vseth.ethz.ch:80','https-proxy':'http://local-docker.vseth.ethz.ch:443'}}" >> /etc/docker/daemon.json

# Get the CA certificate from the proxy and make it a trusted root.
# example is for Debian/Ubuntu
$ curl http://local-docker.vseth.ethz.ch/ca.crt > /usr/share/ca-certificates/docker_registry_proxy.crt
$ echo "docker_registry_proxy.crt" >> /etc/ca-certificates.conf
$ update-ca-certificates --fresh

# Reload service
$ systemctl daemon-reload
$ systemctl restart docker.service

More information and used software: https://github.com/rpardini/docker-registry-proxy