Skip to content

Commit

Permalink
Move2Kube
Browse files Browse the repository at this point in the history
  • Loading branch information
SpikySpam committed Sep 30, 2023
1 parent e7bc4ca commit 5413eca
Show file tree
Hide file tree
Showing 15 changed files with 71 additions and 51 deletions.
12 changes: 6 additions & 6 deletions 08_tools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@

![Tools Banner](_assets/images/tools_banner.png)

In this Tutorial we are going to prepare some **Docker** compose files for a couple of the frequently used tool like **Filebrowser**, **Kutt-IT**, **Searxng**, **Heimdall**, **Uptime-Kuma** and **Listmonk**
In this Tutorial we are going to prepare some **Docker** compose files for a couple of the frequently used tool like **Filebrowser**, **Kutt-IT**, **Searxng**, **Dashy**, **Uptime-Kuma** and **Listmonk**

## Video

In this video I demonstrate how to install **Filebrowser**, **Kutt-IT***, **Searxng**, **Heimdall**, **Uptime-Kuma** and **Listmonk** on a [Ubuntu Virtual Machine](../01_setting_up_a_cheap_home_lab_with_proxmox/018_ubuntu/README.md) (*in ProxMox*) inside a **Docker** container.
In this video I demonstrate how to install **Filebrowser**, **Kutt-IT***, **Searxng**, **Dashy**, **Uptime-Kuma** and **Listmonk** on a [Ubuntu Virtual Machine](../01_setting_up_a_cheap_home_lab_with_proxmox/018_ubuntu/README.md) (*in ProxMox*) inside a **Docker** container.

[![Video](_assets/images/tools_video.png)](https://youtu.be/XXXXXXXXXXXXX)

## Links

- [FileBrowser](https://filebrowser.org)
- [File Browser](https://filebrowser.org)
- [Kutt-IT](https://kutt.it)
- [Searxng](https://docs.searxng.org)
- [Heimdall](https://heimdall.site/)
- [Dashy](https://dashy.to)
- [Uptime-Kuma](https://uptime.kuma.pet)
- [Listmonk](https://listmonk.app)
- [Background Music](https://freesound.org/people/AlesiaDavina/sounds/687372/)
Expand Down Expand Up @@ -47,8 +47,8 @@ These are all the commands in a single script.
# Searxng
docker compose -f $TF_VAR_PATH_APP/docker/$TF_VAR_SEARXNG_NAME/docker-compose.yaml up -d

# Heimdall
docker compose -f $TF_VAR_PATH_APP/docker/$TF_VAR_HEIMDALL_NAME/docker-compose.yaml up -d
# Dashy
docker compose -f $TF_VAR_PATH_APP/docker/$TF_VAR_DASHY_NAME/docker-compose.yaml up -d

# Uptime-Kuma
docker compose -f $TF_VAR_PATH_APP/docker/$TF_VAR_UPTIMEKUMA_NAME/docker-compose.yaml up -d
Expand Down
2 changes: 1 addition & 1 deletion 08_tools/_assets/scripts/09.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"name": "en-US-Studio-M"
},
"input": {
"text": "Oh, damn, Heimdall doesn't seem to work. I hop I can fix that soon."
"text": ""
}
}
5 changes: 3 additions & 2 deletions 10_development/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@

![Development Banner](_assets/images/development_banner.png)

In this Tutorial we are going to prepare some **Docker** compose files for a couple of the frequently used development tool like **RabbitMQ**, **Harbor**, **Gitlab** and **Code Server**.
In this Tutorial we are going to prepare some **Docker** compose files for a couple of the frequently used development tool like **RabbitMQ**, **Harbor**, **Jenkins**, **Gitlab** and **Code Server**.

## Video

In this video I demonstrate how to install **RabbitMQ**, **Harbor**, **Gitlab** and **Code Server** on a [Ubuntu Virtual Machine](../01_setting_up_a_cheap_home_lab_with_proxmox/018_ubuntu/README.md) (*in ProxMox*) inside a **Docker** container.
In this video I demonstrate how to install **RabbitMQ**, **Harbor**, **Jenkins**, **Gitlab** and **Code Server** on a [Ubuntu Virtual Machine](../01_setting_up_a_cheap_home_lab_with_proxmox/018_ubuntu/README.md) (*in ProxMox*) inside a **Docker** container.

[![Video](_assets/images/development_video.png)](https://youtu.be/XXXXXXXXXXXXX)

## Links

- [RabbitMQ](https://rabbitmq.com)
- [Harbor](https://bitnami.com/stack/harbor)
- [Jenkins](https://www.jenkins.io)
- [Gitlab](https://gitlab.com)
- [Code Server](https://gitlab.com)

Expand Down
2 changes: 1 addition & 1 deletion 11_hack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ In this video I demonstrate how to install **Phone Info GA**, **Sherlock**, **St
- [Softether](https://softether.org)
- [Beef Project](https://beefproject.com/)
- [Sherlock](https://sherlock-project.github.io)
- [Hacking Tool](https://beefproject.com/)
- Hacking Tools

## Prerequisites

Expand Down
3 changes: 0 additions & 3 deletions SS/.bash_profile_public
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,6 @@ export TF_VAR_KUTT_NAME="kutt"
export TF_VAR_KUTT_PASSWORD="UltraSecretPassword123!"
# -- searxng
export TF_VAR_SEARXNG_NAME="searxng"
# -- heimdall
export TF_VAR_HEIMDALL_NAME="heimdall"
export TF_VAR_HEIMDALL_TZ="Etc/UTC"
# -- uptime-kuma
export TF_VAR_UPTIMEKUMA_NAME="uptime-kuma"
export TF_VAR_UPTIMEKUMA_USER=$TF_VAR_MAILINABOX_USER
Expand Down
15 changes: 15 additions & 0 deletions SS/SS.APP/docker/dashy/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: '3.8'

services:
dashy: # ${TF_VAR_DASHY_NAME}
image: lissy93/dashy:${TF_VAR_VERSION_DOCKER_DASHY}
container_name: ${TF_VAR_DASHY_NAME}
restart: unless-stopped
ports:
- ${TF_VAR_DASHY_PORT_EXT}:${TF_VAR_DASHY_PORT_INT}
# volumes:
# - $HOME/docker/${TF_VAR_DASHY_NAME}:/app/public/
environment:
- NODE_ENV=production
- UID=1000
- GID=1000
5 changes: 5 additions & 0 deletions SS/SS.APP/docker/dashy/recreate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

docker compose -f $TF_VAR_PATH_APP/docker/$TF_VAR_DASHY_NAME/docker-compose.yaml down
rm -rf $HOME/docker/$TF_VAR_DASHY_NAME
docker compose -f $TF_VAR_PATH_APP/docker/$TF_VAR_DASHY_NAME/docker-compose.yaml up -d
16 changes: 0 additions & 16 deletions SS/SS.APP/docker/heimdall/docker-compose.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions SS/SS.APP/docker/heimdall/recreate.sh

This file was deleted.

2 changes: 1 addition & 1 deletion SS/SS.APP/docker/recreate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

${TF_VAR_PATH_APP}/docker/${TF_VAR_BEEF_NAME}/recreate.sh
${TF_VAR_PATH_APP}/docker/${TF_VAR_CODESERVER_NAME}/recreate.sh
${TF_VAR_PATH_APP}/docker/${TF_VAR_DASHY_NAME}/recreate.sh
${TF_VAR_PATH_APP}/docker/${TF_VAR_ELASTICSEARCH_NAME}/recreate.sh
${TF_VAR_PATH_APP}/docker/${TF_VAR_FILEBROWSER_NAME}/recreate.sh
${TF_VAR_PATH_APP}/docker/${TF_VAR_GITLAB_NAME}/recreate.sh
${TF_VAR_PATH_APP}/docker/${TF_VAR_GRAFANA_NAME}/recreate.sh
${TF_VAR_PATH_APP}/docker/${TF_VAR_GUACAMOLE_NAME}/recreate.sh
${TF_VAR_PATH_APP}/docker/${TF_VAR_HACK_NAME}/recreate.sh
${TF_VAR_PATH_APP}/docker/${TF_VAR_HARBOR_NAME}/recreate.sh
${TF_VAR_PATH_APP}/docker/${TF_VAR_HEIMDALL_NAME}/recreate.sh
${TF_VAR_PATH_APP}/docker/${TF_VAR_JENKINS_NAME}/recreate.sh
${TF_VAR_PATH_APP}/docker/${TF_VAR_KALI_NAME}/recreate.sh
${TF_VAR_PATH_APP}/docker/${TF_VAR_KEYCLOAK_NAME}/recreate.sh
Expand Down
44 changes: 34 additions & 10 deletions SS/SS/cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ CLI_NAME_K6="k6"
CLI_NAME_KIND="kind"
CLI_NAME_KUBECTL="kubectl"
CLI_NAME_LYCHEE="lychee"
CLI_NAME_MOVE2KUBE="move2kube"
CLI_NAME_POPEYE="popeye"
CLI_NAME_STEP="step"
CLI_NAME_TERRAFORM="terraform"
Expand Down Expand Up @@ -154,6 +155,28 @@ cli_install_lychee() {

}

cli_install_move2kube() {

if ! compgen -G "$TF_VAR_PATH_CLI/$CLI_NAME_MOVE2KUBE*" > /dev/null; then
if [ $OSTYPE == $OSTYPE_LINUX ]; then
curl -sSLo $TF_VAR_PATH_CLI/$CLI_NAME_MOVE2KUBE.tar.gz https://github.com/konveyor/$CLI_NAME_MOVE2KUBE/releases/download/v$TF_VAR_VERSION_CLI_MOVE2KUBE/move2kube-v$TF_VAR_VERSION_CLI_MOVE2KUBE-linux-amd64.tar.gz
tar -zxf $TF_VAR_PATH_CLI/$CLI_NAME_MOVE2KUBE.tar.gz -C $TF_VAR_PATH_CLI $CLI_NAME_MOVE2KUBE/$CLI_NAME_MOVE2KUBE --strip-components 1
rm -f $TF_VAR_PATH_CLI/$CLI_NAME_MOVE2KUBE.tar.gz
chmod +x $TF_VAR_PATH_CLI/$CLI_NAME_MOVE2KUBE
elif [ $OSTYPE == $OSTYPE_WINDOWS ]; then
curl -sSLo $TF_VAR_PATH_CLI/$CLI_NAME_MOVE2KUBE.zip https://github.com/konveyor/$CLI_NAME_MOVE2KUBE/releases/download/v$TF_VAR_VERSION_CLI_MOVE2KUBE/move2kube-v$TF_VAR_VERSION_CLI_MOVE2KUBE-windows-amd64.zip
unzip -oqj $TF_VAR_PATH_CLI/$CLI_NAME_MOVE2KUBE.zip $CLI_NAME_MOVE2KUBE/$CLI_NAME_MOVE2KUBE.exe -d $TF_VAR_PATH_CLI
rm -f $TF_VAR_PATH_CLI/$CLI_NAME_MOVE2KUBE.zip
chmod +x $TF_VAR_PATH_CLI/$CLI_NAME_MOVE2KUBE.exe
fi
echo -n ""
else
echo -n ""
fi
[ $INITIALIZE == false ] && echo $CLI_NAME_MOVE2KUBE" "$(move2kube version)

}

cli_install_popeye() {

if ! compgen -G "$TF_VAR_PATH_CLI/$CLI_NAME_POPEYE*" > /dev/null; then
Expand Down Expand Up @@ -224,15 +247,16 @@ echo $DIV
echo ⬇️ " Downloading CLI tools"
echo $DIV

cli_install_gitleaks
cli_install_helm
cli_install_jq
cli_install_k6
cli_install_kind
cli_install_kubectl
cli_install_lychee
cli_install_popeye
cli_install_step
cli_install_terraform
# cli_install_gitleaks
# cli_install_helm
# cli_install_jq
# cli_install_k6
# cli_install_kind
# cli_install_kubectl
# cli_install_lychee
cli_install_move2kube
# cli_install_popeye
# cli_install_step
# cli_install_terraform

[ $INITIALIZE != false ] && echo
6 changes: 2 additions & 4 deletions SS/SS/ports.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,8 @@ export TF_VAR_KUTT_PORT_INT=3000
export TF_VAR_KUTT_PORT_EXT=3000
export TF_VAR_SEARXNG_PORT_INT=8080
export TF_VAR_SEARXNG_PORT_EXT=8082
export TF_VAR_HEIMDALL_PORT_INT_80=80
export TF_VAR_HEIMDALL_PORT_EXT_80=8084
export TF_VAR_HEIMDALL_PORT_INT_443=443
export TF_VAR_HEIMDALL_PORT_EXT_443=4434
export TF_VAR_DASHY_PORT_INT=80
export TF_VAR_DASHY_PORT_EXT=8087
export TF_VAR_UPTIMEKUMA_PORT_INT=3001
export TF_VAR_UPTIMEKUMA_PORT_EXT=3001
export TF_VAR_LISTMONK_PORT_INT=9000
Expand Down
1 change: 1 addition & 0 deletions SS/SS/version/cli/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export TF_VAR_VERSION_CLI_K6="0.46.0" # https://github.com/grafana/k6/re
export TF_VAR_VERSION_CLI_KIND="0.20.0" # https://github.com/kubernetes-sigs/kind/releases
export TF_VAR_VERSION_CLI_KUBECTL="1.28.2" # https://kubernetes.io/docs/tasks/tools/
export TF_VAR_VERSION_CLI_LYCHEE="0.13.0" # https://github.com/lycheeverse/lychee/releases
export TF_VAR_VERSION_CLI_MOVE2KUBE="0.3.10" # https://github.com/konveyor/move2kube/releases
export TF_VAR_VERSION_CLI_POPEYE="0.11.1" # https://github.com/derailed/popeye/releases
export TF_VAR_VERSION_CLI_STEP="0.24.4" # https://github.com/smallstep/cli/releases
export TF_VAR_VERSION_CLI_TERRAFORM="1.5.7" # https://github.com/hashicorp/terraform/releases
2 changes: 1 addition & 1 deletion SS/SS/version/docker/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export TF_VAR_VERSION_DOCKER_GUACAMOLE=$TF_VAR_VERSION_DOCKER_GUACD # https
export TF_VAR_VERSION_DOCKER_FILEBROWSER="2.25.0" # https://hub.docker.com/r/filebrowser/filebrowser/tags
export TF_VAR_VERSION_DOCKER_KUTT="2.7.4" # https://hub.docker.com/r/kutt/kutt/tags
export TF_VAR_VERSION_DOCKER_SEARXNG="2023.9.24-19383921d" # https://hub.docker.com/r/searxng/searxng/tags
export TF_VAR_VERSION_DOCKER_HEIMDALL="2.5.6" # https://hub.docker.com/r/linuxserver/heimdall/tags
export TF_VAR_VERSION_DOCKER_DASHY="2.1.1" # https://hub.docker.com/r/lissy93/dashy/tags
export TF_VAR_VERSION_DOCKER_UPTIMEKUMA="1.23.2" # https://hub.docker.com/r/louislam/uptime-kuma/tags
export TF_VAR_VERSION_DOCKER_LISTMONK="2.5.1" # https://hub.docker.com/r/listmonk/listmonk/tags

Expand Down
2 changes: 1 addition & 1 deletion TODO.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 📅 Planned Future Videos

- **Docker Series**:
- 08. Tools: FileBrowser, Kutt, Searxng, Heimdall, Uptime-Kuma, Listmonk
- 08. Tools: FileBrowser, Kutt, Searxng, Dashy, Uptime-Kuma, Listmonk
- 09. Security Tools: Keycloak, Guacamole, Twingate
- 10. Development Tools: RabbitMQ, Harbor, Gitlab
- 11. Hack Tools: Phone Info GA, Sherlock, Storm Breaker, Softether, Beef Project
Expand Down

0 comments on commit 5413eca

Please sign in to comment.