mirror of
https://github.com/ublue-os/forge.git
synced 2025-07-04 08:45:45 +03:00
chore(devcontainer): init
for everyone who wants to use it ;)
This commit is contained in:
parent
9b46c072f5
commit
b7d9417abd
10 changed files with 209 additions and 0 deletions
47
.devcontainer/install-dev-tools.sh
Normal file
47
.devcontainer/install-dev-tools.sh
Normal file
|
@ -0,0 +1,47 @@
|
|||
#!/bin/bash
|
||||
cat <<EOM
|
||||
install-dev-tools.sh
|
||||
=============================================
|
||||
This script customizes the devcontainer setup
|
||||
=============================================
|
||||
EOM
|
||||
# Bash colors
|
||||
RED="\e[31m"
|
||||
YELLOW="\e[33m"
|
||||
GREEN="\e[32m"
|
||||
ENDCOLOR="\e[0m"
|
||||
|
||||
## Update system
|
||||
echo ""
|
||||
echo -e "${YELLOW}Updating OS${ENDCOLOR}"
|
||||
echo ""
|
||||
sudo apk update && sudo apk upgrade
|
||||
|
||||
## Install additional tools
|
||||
echo ""
|
||||
echo -e "${YELLOW}Installing additional tools${ENDCOLOR}"
|
||||
echo ""
|
||||
sudo apk add git-extras --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing
|
||||
|
||||
## Install podman remote
|
||||
echo ""
|
||||
echo -e "${YELLOW}Installing podman-remote${ENDCOLOR}"
|
||||
echo ""
|
||||
PODMAN_SOURCE=https://github.com/containers/podman/releases/download/v4.4.4/podman-remote-static-linux_amd64.tar.gz
|
||||
PODMAN_TMP=/tmp/podman.tar.gz
|
||||
wget -O $PODMAN_TMP $PODMAN_SOURCE
|
||||
sudo tar -xf $PODMAN_TMP -C /tmp
|
||||
sudo mv /tmp/bin/podman-remote-static-linux_amd64 /usr/bin/podman
|
||||
podman system connection add devcontainer_host unix:///run/podman/podman.sock
|
||||
sudo rm -rf /tmp/bin
|
||||
|
||||
# Add git commit template
|
||||
echo ""
|
||||
echo -e "${YELLOW}Configuring git${ENDCOLOR}"
|
||||
echo ""
|
||||
git config --local commit.template .gitmessage
|
||||
|
||||
# Finish
|
||||
echo ""
|
||||
echo -e "${GREEN}Done. Happy coding!${ENDCOLOR}"
|
||||
echo ""
|
Loading…
Add table
Add a link
Reference in a new issue