big brain

This commit is contained in:
Sivert V. Sæther 2021-05-18 03:19:12 +02:00
parent c5057dd582
commit cd90026a53
2 changed files with 43 additions and 4 deletions

39
build/image-builder.sh Executable file
View File

@ -0,0 +1,39 @@
#!/bin/bash
build_rust() {
docker build --pull -t registry.sivert.pw/build/rust rust
}
push_rust() {
docker push registry.sivert.pw/build/rust
}
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

View File

@ -1,7 +1,7 @@
FROM archlinux:latest FROM archlinux:base-devel
RUN pacman -Suyy\ RUN pacman -Suyy --noconfirm\
rustup rustup podman
RUN rustup toolchain install stabile RUN rustup toolchain install stable
CMD [ "bash" ] CMD [ "bash" ]