Files
michael hohn 13a065545e Standardize container build workflow for v0.4.5
- Build Go binaries (gh-mrva, mrvaserver, mrvaagent) in source repos before
  copying to container dirs

- Apply consistent v0.4.5 tagging across all containers (ghmrva, vscode,
  hepc, server, agent)

- Update hepc to sync mrvahepc source with venv and .git exclusions

- Verify deployment with docker-compose-demo.yml and bin/ma.send-request
  tests
2025-11-26 12:39:59 -08:00
..

agent image build

  • build container

      # Build the container via
      cd ~/work-gh/mrva/mrva-docker/containers/agent/
    
      docker build --no-cache --network host -t mrva-agent:0.4.0 .
    
      # Run bash in the container in standalone mode
      cd ~/work-gh/mrva/mrva-docker/containers/agent/
      docker run --env-file ../../.env.container --rm -it \
             --entrypoint /bin/bash \
             mrva-agent:0.4.0
      '
      ls /usr/local/bin/
      entrypoint.sh  mrvaagent
      '
  • Tag the container. This is sufficient for further use on the local machine.

      cd ~/work-gh/mrva/mrva-docker/containers/agent &&\
          docker tag mrva-agent:0.4.0 \
                 ghcr.io/hohn/mrva-agent:0.4.0
  • Push this container

      docker push ghcr.io/hohn/mrva-agent:0.4.0
  • Test the registry image

      # Test pushed container
      docker pull ghcr.io/hohn/mrva-agent:0.4.0
      docker run --env-file ../../.env.container --rm -it \
             --entrypoint /bin/bash \
             mrva-agent:0.4.0