Skip to content

Commit

Permalink
Add to drafts
Browse files Browse the repository at this point in the history
  • Loading branch information
john-cd committed Jan 2, 2024
1 parent b2bc536 commit c6149d2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drafts/tools/cd_ci.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,6 @@ Example `.github/workflows/<name>.yml`
## See also
[Optimizing CI/CD pipelines in your Rust projects]( https://blog.logrocket.com/optimizing-ci-cd-pipelines-rust-projects/ )
<https://docs.github.com/en/actions/creating-actions/creating-a-docker-container-action>
<https://github.com/marketplace/actions/upload-a-build-artifact>
12 changes: 12 additions & 0 deletions drafts/tools/docker_compose.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Docker Compose

An easy way to get started is to run `docker init` in a new folder, select `Rust` as the project type, then edit the provided `compose.yaml` and `Dockerfile`.

- Build your image: `docker build -t myapp .`.
- If your cloud uses a different CPU architecture than your development machine (e.g., you are on a Mac M1 and your cloud provider is amd64), you'll want to build the image for that platform, e.g.: `docker build --platform=linux/amd64 -t myapp .`.
- Start your application by running: `docker compose up --build`

## References

- Docker's [getting started](https://docs.docker.com/go/get-started-sharing/) docs.
- [Docker's Rust guide](https://docs.docker.com/language/rust/)

0 comments on commit c6149d2

Please sign in to comment.