big brain
This commit is contained in:
parent
c5057dd582
commit
cd90026a53
39
build/image-builder.sh
Executable file
39
build/image-builder.sh
Executable 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
|
@ -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" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user