Skip to content

Commit

Permalink
added docker folder
Browse files Browse the repository at this point in the history
  • Loading branch information
matteusbeus committed Jul 10, 2022
1 parent c83606a commit f5dc33a
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.231.6/containers/ubuntu/.devcontainer/base.Dockerfile

# [Choice] Ubuntu version (use hirsuite or bionic on local arm64/Apple Silicon): hirsute, focal, bionic
ARG VARIANT="focal"
FROM mcr.microsoft.com/vscode/devcontainers/base:0-${VARIANT}

# [Optional] Uncomment this section to install additional OS packages.
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends <your-package-list-here>

RUN sudo apt update && apt install -y curl zstd make jq

RUN curl -sL --fail -H "Accept: application/vnd.github.v3+json" \
"https://api.github.com/repos/viciious/32XDK/releases/tags/20190504" \
| jq -r ".assets | .[] | select(.name | test(\"chillys-sega-devkit-20190504-opt.tar.zst$\")) | .url" \
| xargs curl -sL --fail -H "Accept: application/octet-stream" -O /dev/stdout | zstdcat | tar -C / -xa

RUN sudo apt -y install file

RUN sudo dpkg --add-architecture i386

RUN sudo apt update

RUN sudo apt install -y libx11-6:i386

RUN sudo apt update

RUN sudo apt -y install zlib1g:i386

RUN sudo wget "http://ppa.launchpad.net/linuxuprising/libpng12/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1.1+1~ppa0~eoan_i386.deb"

RUN sudo dpkg -i libpng12-0_1.2.54-1ubuntu1.1+1~ppa0~eoan_i386.deb

RUN sudo apt update

RUN sudo apt -y install lib32stdc++6

COPY ["libpcm.a", "/opt/toolchains/sega/m68k-elf/lib/"]

RUN sudo apt update

RUN sudo apt -y install genisoimage
35 changes: 35 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.231.6/containers/ubuntu
{
"name": "Ubuntu",
"build": {
"dockerfile": "Dockerfile",
// Update 'VARIANT' to pick an Ubuntu version: hirsute, focal, bionic
// Use hirsute or bionic on local arm64/Apple Silicon.
"args": { "VARIANT": "focal" }
},

// Set *default* container specific settings.json values on container create.
"settings": {},


// Add the IDs of extensions you want installed when the container is created in the array below.
"extensions": [
"ms-vscode.cpptools",
"steventattersall.m68k",
"ms-vscode.cpptools-extension-pack"
],

// 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": "uname -a",

// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode",
"features": {
"git": "os-provided"
}

}
Binary file added .devcontainer/libpcm.a
Binary file not shown.

0 comments on commit f5dc33a

Please sign in to comment.