Compare commits
3 Commits
801826e5c9
...
87d21ac86a
Author | SHA1 | Date | |
---|---|---|---|
87d21ac86a | |||
c116be2f1c | |||
da03dbca37 |
6
LICENSE
6
LICENSE
@@ -208,8 +208,8 @@ If you develop a new program, and you want it to be of the greatest possible use
|
|||||||
|
|
||||||
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.
|
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
<one line to give the program's name and a brief idea of what it does.>
|
Dockerfiles developed and maintained by Sivert V. Sæther.
|
||||||
Copyright (C) <year> <name of author>
|
Copyright (C) 2021 Sivert V. Sæther <dockerfiles@sivert.pw>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
@@ -221,7 +221,7 @@ Also add information on how to contact you by electronic and paper mail.
|
|||||||
|
|
||||||
If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:
|
If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:
|
||||||
|
|
||||||
<program> Copyright (C) <year> <name of author>
|
Dockerfiles Copyright (C) 2021 Sivert V. Sæther <dockerfiles@sivert.pw>
|
||||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
|
This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
11
Makefile
Normal file
11
Makefile
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
contexts = siverten/bind9 siverten/oxen
|
||||||
|
|
||||||
|
siverten/bind9 :
|
||||||
|
docker build siverten/bind9
|
||||||
|
siverten/oxen :
|
||||||
|
docker build siverten/oxen
|
||||||
|
|
||||||
|
build : $(contexts)
|
||||||
|
./sh/build.sh $(contexts)
|
||||||
|
push : $(contexts)
|
||||||
|
./sh/push.sh $(contexts)
|
12
README.md
12
README.md
@@ -2,3 +2,15 @@
|
|||||||
|
|
||||||
Only Dockerfiles for build images so far.
|
Only Dockerfiles for build images so far.
|
||||||
Will most certanly put some other useful Dockerfiles here later.
|
Will most certanly put some other useful Dockerfiles here later.
|
||||||
|
|
||||||
|
## The sh folder
|
||||||
|
Contians a script and symlinks for using the Makefile.
|
||||||
|
|
||||||
|
## NOTE
|
||||||
|
To make things easy for myself I've added a cheecky siverten/ folder
|
||||||
|
for stuff I've got on [DockerHub](https://hub.docker.com/).
|
||||||
|
Most of them are automagically built with scripts on my servers so
|
||||||
|
this is absolutely fantastick!
|
||||||
|
I would also love for anyone to contriblute, but for the time being
|
||||||
|
this is hosted on my very own, pretty obscure git server.
|
||||||
|
|
||||||
|
@@ -1,39 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
build_rust() {
|
|
||||||
docker build --pull -t registry.sivert.pw/build/rust:latest rust
|
|
||||||
}
|
|
||||||
|
|
||||||
push_rust() {
|
|
||||||
docker push registry.sivert.pw/build/rust:latest
|
|
||||||
}
|
|
||||||
|
|
||||||
build_and_push_rust() {
|
|
||||||
build_rust
|
|
||||||
push_rust
|
|
||||||
}
|
|
||||||
|
|
||||||
echo ''
|
|
||||||
echo ' --- image-builder.sh (6000) ---'
|
|
||||||
echo ''
|
|
||||||
echo ' 0 - exit'
|
|
||||||
echo ''
|
|
||||||
echo ' # rust'
|
|
||||||
echo ' 1 - build'
|
|
||||||
echo ' 2 - both'
|
|
||||||
echo ' 3 - push'
|
|
||||||
echo ''
|
|
||||||
|
|
||||||
# TODO: add submenus for more build images
|
|
||||||
loop() {
|
|
||||||
echo -n 'what numba? '
|
|
||||||
read -r todo
|
|
||||||
case $todo in
|
|
||||||
'0') exit 0 ;;
|
|
||||||
'1') build_rust ;;
|
|
||||||
'2') build_and_push_rust ;;
|
|
||||||
'3') push_rust ;;
|
|
||||||
*) loop && exit 0;; # sus
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
loop
|
|
@@ -1,7 +1,9 @@
|
|||||||
FROM archlinux:base-devel
|
FROM alpine:edge
|
||||||
|
|
||||||
RUN pacman -Suyy --noconfirm\
|
RUN apk update&&apk upgrade&&apk add\
|
||||||
rustup docker
|
rustup
|
||||||
RUN rustup toolchain install stable
|
RUN rustup-init -y
|
||||||
|
|
||||||
CMD [ "bash" ]
|
ENV PATH="/root/.cargo/bin:${PATH}"
|
||||||
|
|
||||||
|
CMD [ "ash" ]
|
||||||
|
1
sh/build.sh
Symbolic link
1
sh/build.sh
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
docker.sh
|
10
sh/docker.sh
Executable file
10
sh/docker.sh
Executable file
@@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
op=`basename $0 .sh`
|
||||||
|
for context in $*; do
|
||||||
|
if [ "$op" == "build" ]; then
|
||||||
|
extra=" -t $context:latest"
|
||||||
|
else
|
||||||
|
extra=":latest"
|
||||||
|
fi
|
||||||
|
docker $op $context$extra
|
||||||
|
done
|
1
sh/push.sh
Symbolic link
1
sh/push.sh
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
docker.sh
|
9
siverten/README.md
Normal file
9
siverten/README.md
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# Docker files for siverten/ docker images on the DockerHub registry!
|
||||||
|
|
||||||
|
### bind9
|
||||||
|
Simple alpine based bind9 docker image.
|
||||||
|
|
||||||
|
### oxen
|
||||||
|
A bit more bloated debian based docker image for running nodes
|
||||||
|
on the oxen/loki crypto network.
|
||||||
|
|
6
siverten/bind9/Dockerfile
Normal file
6
siverten/bind9/Dockerfile
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
FROM alpine:3.12
|
||||||
|
|
||||||
|
RUN apk --update --no-cache add bind bind-dnssec-tools
|
||||||
|
EXPOSE 53
|
||||||
|
|
||||||
|
CMD ["named", "-c", "/etc/bind/named.conf", "-g", "-u", "named"]
|
12
siverten/oxen/Dockerfile
Normal file
12
siverten/oxen/Dockerfile
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
FROM debian:10
|
||||||
|
|
||||||
|
RUN apt update
|
||||||
|
RUN apt install -y curl
|
||||||
|
|
||||||
|
RUN curl -so /etc/apt/trusted.gpg.d/oxen.gpg https://deb.oxen.io/pub.gpg
|
||||||
|
RUN echo "deb https://deb.oxen.io buster main" | tee /etc/apt/sources.list.d/oxen.list
|
||||||
|
|
||||||
|
RUN apt update -y && apt upgrade -y
|
||||||
|
RUN apt install -y oxen-service-node
|
||||||
|
|
||||||
|
CMD [ "oxend", "--non-interactive" ]
|
Reference in New Issue
Block a user