-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from nate-yocom/add-devcontainer
Add a rust+cc65 devcontainer env
- Loading branch information
Showing
3 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |