Compile the rocket-code repo with Docker!
Install docker compose by following those steps
Install Docker engine
install docker on linux by following those steps
- note: On linux you might need to use
sudoeach time you run a docker command
Install docker on mac by installing [Docker Desktop]
git pull https://github.com/uorocketry/docker-rocket-code.git
Go in the .env file, and modify it to include the location of the rocket-code repo
LOCATION=location/of/rocket-code
Go to the location of the repo, and execute this command docker-compose up -d
Docker already setup everything for you
To get a shel inside the container, do docker ps and note the CONTAINER ID
Then, execute docker exec -it [CONTAINER ID] bash and you should get a shell. To exit, type exit
Now you should be able to go to /root/rocket_code and see the project. You can try to run ./build.sh and it should work. You should also be able to run the code.
docker ps List the running containers
docker ps -a List all containers
docker container rm [CONTAINER ID] Delete container with CONTAINER ID
docker kill [CONTAINER ID] Kill the container with CONTAINER ID
docker images List all images
docker image rm [IMAGE ID] Remove the image with IMAGE ID
docker-compose up -d --build start service but by building the images again
Currently, the docker image does not support cross compilation of the project. You will need to set it up manually inside the container if you want to do that