You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need a public container we can run on a node in our cluster, which reaches out to the swarm cluster and performs privileged actions. Since no apis exist for this, and we will be remote this will have to be a container.
Container needs to have docker experimental client, and it'll have to be run with the DOCKER_HOST and certs for the swarm master node. Running it should execute the docker cluster change as needed.
These changes include
Create a ship on the cluster
Kill a ship
Move a ship between networks (kill the container, start it on the new network, update god api with details, this should not consitute a kill)
the image should be run with the following args, some of which are optional for remove:
ACTION - which action to perform (start/stop/move)
CONTAINER_ID - the id of the container on the cluster
CONTAINER_NAME - the user provided ship name
CONTAINER_IMAGE - the user provided ship image
DESIRED_NETWORK - which sector the ship should be started in
API_URL - a url to the God api for the ship to use
Move is a combination of start and stop, and tt should execute the following changes:
verify current network is not desired network
docker rm -f CONTAINER_ID
docker run --publish-service CONTAINER_NAME.DESIRED_NETWORK --name CONTAINER_NAME -tid CONTAINER_IMAGE
return the new CONTAINER_ID and HOST_IP
The text was updated successfully, but these errors were encountered:
We need a public container we can run on a node in our cluster, which reaches out to the swarm cluster and performs privileged actions. Since no apis exist for this, and we will be remote this will have to be a container.
Container needs to have docker experimental client, and it'll have to be run with the DOCKER_HOST and certs for the swarm master node. Running it should execute the docker cluster change as needed.
These changes include
the image should be run with the following args, some of which are optional for remove:
Move is a combination of start and stop, and tt should execute the following changes:
The text was updated successfully, but these errors were encountered: