Skip to content

Commit

Permalink
Merge pull request #11 from nate-yocom/add-devcontainer
Browse files Browse the repository at this point in the history
Add a rust+cc65 devcontainer env
  • Loading branch information
pm100 authored Feb 4, 2024
2 parents abc1ab9 + 23063ec commit 4d437ba
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM mcr.microsoft.com/devcontainers/rust:1-1-bullseye

ENV BUILD_DIR="/cc65-src"
ENV CC65_VERSION="2.19"
ENV CC65_DOWNLOAD_VERSION="V2.19"
ENV PREFIX="/usr/local"
ENV CC65_SOURCE_DIR="${BUILD_DIR}/cc65-${CC65_VERSION}"

RUN apt-get update && apt-get install build-essential -y && \
mkdir -p ${BUILD_DIR} && \
cd ${BUILD_DIR} && \
wget https://github.com/cc65/cc65/archive/${CC65_DOWNLOAD_VERSION}.tar.gz && \
tar xzf ${CC65_DOWNLOAD_VERSION}.tar.gz && \
cd cc65* && \
make && \
make install
43 changes: 43 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/rust
{
"name": "DB65-Dev-Container",
"build": {
"dockerfile": "Dockerfile"
},
"features": {
"ghcr.io/jungaretti/features/make:1": {}
},
// Features to add to the dev container. More info: https://containers.dev/features.
"customizations": {
"vscode": {
"extensions": [
"dustypomerleau.rust-syntax",
"ms-vscode.cpptools-extension-pack"
]
}
}

// Use 'mounts' to make the cargo cache persistent in a Docker Volume.
// "mounts": [
// {
// "source": "devcontainer-cargo-cache-${devcontainerId}",
// "target": "/usr/local/cargo",
// "type": "volume"
// }
// ]

// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "rustc --version",

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for more information:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
# https://containers.dev/guide/dependabot

version: 2
updates:
- package-ecosystem: "devcontainers"
directory: "/"
schedule:
interval: weekly

0 comments on commit 4d437ba

Please sign in to comment.