Build custom console on minio docker - allanrogerr/public GitHub Wiki
Install go
wget https://go.dev/dl/go1.22.3.linux-amd64.tar.gz
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.22.3.linux-amd64.tar.gz
cat <<EOF >> $HOME/.profile
export PATH=$PATH:/usr/local/go/bin:~/go/bin
EOF
cat $HOME/.profile
source $HOME/.profile
go version
Clone
mkdir github
cd github/
git clone https://github.com/minio/console.git
git clone https://github.com/minio/minio.git
Change code e.g. api/admin_info.go and rebuild
cd console/
vi api/admin_info.go
make build
sudo apt-get install nodejs -y
sudo apt-get install npm -y
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
source ~/.bashrc
nvm install --lts && nvm use --lts && npm install -g yarn
make assets
Remake minio docker
cd ..
cd minio/
vi go.mod
#### Add the following replace command
module github.com/minio/minio
go 1.21
replace github.com/minio/console => ../console
make docker
TAG=minio/minio:noop
VERSION=RELEASE.2024-05-10T01-41-38Z-10-g4e5fcca8b
make docker
docker image list