mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-12-21 23:58:51 -05:00
[Dev] Add Support for Github Codespaces (#2551)
* Add apt packages * Move to docker based codspace
This commit is contained in:
parent
f481b86386
commit
f0be8c7b0c
27
.devcontainer/Dockerfile
Normal file
27
.devcontainer/Dockerfile
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
FROM mcr.microsoft.com/devcontainers/cpp:ubuntu-22.04
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y libsdl2-dev libsdl2-net-dev libpng-dev libglew-dev ninja-build
|
||||||
|
|
||||||
|
# Install latest SDL2
|
||||||
|
RUN wget https://www.libsdl.org/release/SDL2-2.26.1.tar.gz && \
|
||||||
|
tar -xzf SDL2-2.26.1.tar.gz && \
|
||||||
|
cd SDL2-2.26.1 && \
|
||||||
|
./configure && \
|
||||||
|
make && \
|
||||||
|
make install && \
|
||||||
|
cd .. && \
|
||||||
|
rm -rf SDL2-2.26.1 && \
|
||||||
|
rm SDL2-2.26.1.tar.gz && \
|
||||||
|
cp -av /usr/local/lib/libSDL* /lib/x86_64-linux-gnu/
|
||||||
|
|
||||||
|
# Install latest SDL2_net
|
||||||
|
RUN wget https://www.libsdl.org/projects/SDL_net/release/SDL2_net-2.2.0.tar.gz && \
|
||||||
|
tar -xzf SDL2_net-2.2.0.tar.gz && \
|
||||||
|
cd SDL2_net-2.2.0 && \
|
||||||
|
./configure && \
|
||||||
|
make && \
|
||||||
|
make install && \
|
||||||
|
cd .. && \
|
||||||
|
rm -rf SDL2_net-2.2.0 && \
|
||||||
|
rm SDL2_net-2.2.0.tar.gz && \
|
||||||
|
cp -av /usr/local/lib/libSDL* /lib/x86_64-linux-gnu/
|
29
.devcontainer/devcontainer.json
Normal file
29
.devcontainer/devcontainer.json
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
||||||
|
// README at: https://github.com/devcontainers/templates/tree/main/src/cpp
|
||||||
|
{
|
||||||
|
"name": "SoH",
|
||||||
|
"build": {
|
||||||
|
"dockerfile": "Dockerfile"
|
||||||
|
},
|
||||||
|
|
||||||
|
// Features to add to the dev container. More info: https://containers.dev/features.
|
||||||
|
// "features": {},
|
||||||
|
|
||||||
|
// Configure tool-specific properties.
|
||||||
|
"customizations": {
|
||||||
|
// Configure properties specific to VS Code.
|
||||||
|
"vscode": {
|
||||||
|
"settings": {},
|
||||||
|
"extensions": []
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 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": "gcc -v",
|
||||||
|
|
||||||
|
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
||||||
|
// "remoteUser": "root"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user