Release
Production (ecp-base)
In the Dev PC:
Update version file
update the /epiclabs23/eh/ecp/ecp-go/version.json with the new release number and time.
Git Tag
cd /epiclabs23/eh/ecp/ecp-go
git tag -a <version> -m "<message>"
git push origin <version>
cd /epiclabs23/eh/ecp/ecp-ui
git tag -a <version> -m "<message>"
git push origin <version>
Build and push
This will build both the api and ui
sudo su
cd /epiclabs23/eh/ecp/ecp-docker/ecp-base
./release.sh
Dev (ecp-go-dev)
Step 1: Build Final Dev Image
cd /epiclabs23/eh/ecp/ecp-docker/ecp-go-dev/
docker build -t nahidacm/ecp-go-dev:latest -f Dockerfile .
To start development / debugging of ecp-api and ecp-ui
- Make an ECP account from
ehmpanel usingECP go DevHosting environment. - The container for this account should mount
/epiclabs23/eh/ecp/ecp-go:/epic-apps/ecp/ecp-goand/epiclabs23/eh/ecp/ecp-ui:/epic-apps/ecp/ecp-ui docker execon the container and run theecp-goandecp-uiin dev mode.- Make changes on the host machine files, since they are mounted in the container.
- Run dev setup script
docker exec -it <ecp_username>_container bash
su <ecp_username>
/epiclabs23/eh/ecp/dev-setup.sh
source ~/.bashrc