Browse Source

merge scheiße!

master
markuman 4 years ago
parent
commit
5826eec597
  1. 2
      README.md
  2. 15
      docker/alpine_dev/Dockerfile
  3. 6
      docker/gir/Dockerfile
  4. 9
      docker/static_site/Dockerfile
  5. 8
      til.md

2
README.md

@ -0,0 +1,2 @@
https://github.com/markuman/dotfiles
Mirror: https://gitlab.com/markuman/dotfiles

15
docker/alpine_dev/Dockerfile

@ -1,15 +0,0 @@
# docker build -t alpine_dev .
# docker run -it alpine_dev bash
# docker run -it -u `id -u $USER` -v ~/git/:/home/docker/git/ -p 8080:8080 alpine_dev bash
FROM alpine:latest
MAINTAINER Markus Bergholz <markuman@gmail.com>
RUN apk update
RUN apk add bash git screen htop ncdu wget nano nodejs bash-completion
RUN rm -rf /var/cache/apk/*
# alpine-sdk
RUN adduser -h /home/docker -s /bin/bash -G users -u 1000 -S -D docker
USER docker
WORKDIR /home/docker
CMD /bin/bash --login

6
docker/gir/Dockerfile

@ -0,0 +1,6 @@
FROM alpine:latest
MAINTAINER Markus Bergholz <markuman@gmail.com>
RUN apk add --update --no-cache bash git screen htop ncdu wget nano bash-completion alpine-sdk
CMD ["bash"]

9
docker/static_site/Dockerfile

@ -0,0 +1,9 @@
FROM alpine:3.6
WORKDIR /app
COPY index.html /app/index.html
COPY enc.png /app/enc.png
EXPOSE 8080
ENTRYPOINT busybox httpd -p 8080 -h /app && tail -f /dev/null

8
til.md

@ -63,13 +63,21 @@ drop all incomming ssh connections
## docker
Delete all containers
* `docker rm $(docker ps -a -q)`
Delete all images
* `docker rmi $(docker images -q)`
Delete all dangling images
* `docker rmi $(docker images -f dangling=true -q)`
Create docker network
* `docker network create mynet`
run two docker `img` container with different names `foo` and `bar` and the can reach each other with domain name `foo` and `bar`
* `docker run --name foo --net mynet img`
* `docker run --name bar --net mynet img`

Loading…
Cancel
Save