use default dind network with public dns
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Jeffrey Paul 2020-02-16 05:53:37 -08:00
parent f6efe03551
commit 2435201c80
4 changed files with 9 additions and 52 deletions

View File

@ -4,7 +4,6 @@ name: default
steps: steps:
- name: docker - name: docker
image: plugins/docker image: plugins/docker
network_mode: bridge
settings: settings:
build_args: build_args:
- UBUNTU_MIRROR_URL=http://ubuntumirror.app.las1.eeqj.de/ubuntu - UBUNTU_MIRROR_URL=http://ubuntumirror.app.las1.eeqj.de/ubuntu

View File

@ -17,3 +17,5 @@ RUN apt-get clean && \
/tmp/* \ /tmp/* \
/var/tmp/* \ /var/tmp/* \
/etc/ssh/ssh_host_*_key /etc/ssh/ssh_host_*_key
EXPOSE 22

View File

@ -1,55 +1,11 @@
# Usage # sneak/sandbox
FIXME update this example command
``` ```
docker run -d --name sandbox sneak/sandbox ; docker run -d -p 22:22 -v /home:/home sneak/sandbox
docker exec -ti sandbox script -q -c "TERM=xterm-color byobu" /dev/null
``` ```
(The 'script' bit works around a bug where `docker exec -t` doesn't
give you a usable tty.)
Or, if you're clever and run an Ubuntu mirror (or caching reverse proxy) on
your docker host:
```
docker run -d --add-host archive.ubuntu.com:172.17.0.1 --name sandbox sneak/sandbox ;
docker exec -ti sandbox script -q -c "TERM=xterm-color byobu" /dev/null
```
# Includes Things Like
* vim
* neovim
* rbenv
* default-jre
* docker (from docker)
* docker-compose
* docker-machine
* bash completion
* python (from ubuntu)
* setuptools
* virtualenv
* node4 (from ubuntu)
* coffeescript
* coffeelint
* go1.6 (from ubuntu)
* byobu and screen
* awscli (from pypi)
* irssi
* runit / daemontools
* envdir
* build-essential
* make
* latex and fonts (from ubuntu)
* Other useful misc tools
* pv
* pbzip2
* nmap
* ppss
* pwgen
* netcat and telnet
* and much more...
# TODO # TODO
* ctags / enhanced vim * ctags / enhanced vim
@ -72,12 +28,12 @@ docker exec -ti sandbox script -q -c "TERM=xterm-color byobu" /dev/null
Feedback is appreciated, PRs are encouraged. Feedback is appreciated, PRs are encouraged.
Drop me an email or tweet [@sneakdotberlin](https://twitter.com/sneakdotberlin).
# Author # Author
Jeffrey Paul <sneak@sneak.berlin> Jeffrey Paul <sneak@sneak.berlin>
[sneak@sneak.berlin](mailto:sneak@sneak.berlin)
https://sneak.berlin https://sneak.berlin
[@sneakdotberlin](https://twitter.com/sneakdotberlin) [@sneakdotberlin](https://twitter.com/sneakdotberlin)

2
run.sh
View File

@ -6,7 +6,7 @@ set -e
exec 1> >(tee -a /var/log/sandboxbuild.log) 2>&1 exec 1> >(tee -a /var/log/sandboxbuild.log) 2>&1
MURM="main universe restricted multiverse" MURM="main universe restricted multiverse"
C="$(lsb_release -cs)" C="focal"
cat > /etc/apt/sources.list.new <<EOF cat > /etc/apt/sources.list.new <<EOF
deb $UBUNTU_MIRROR_URL $C $MURM deb $UBUNTU_MIRROR_URL $C $MURM
deb $UBUNTU_MIRROR_URL $C-updates $MURM deb $UBUNTU_MIRROR_URL $C-updates $MURM