Skip to content

Commit

Permalink
Docker container for Emscripten
Browse files Browse the repository at this point in the history
  • Loading branch information
vault-thirteen committed Sep 11, 2024
1 parent b3c9962 commit eb5f411
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 3 deletions.
3 changes: 3 additions & 0 deletions dev-inf/Docker/Emscripten/Emscripten.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ RUN apt-get -y install cmake
RUN cmake --version

RUN apt-get -y install xz-utils
RUN xz --version

RUN apt-get -y install lsb-release

WORKDIR /home
RUN mkdir emscripten
Expand Down
6 changes: 6 additions & 0 deletions dev-inf/Docker/Emscripten/attach.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

# Exit on error.
set -e

docker attach Emscripten
Empty file.
24 changes: 24 additions & 0 deletions dev-inf/Docker/Emscripten/data/see_version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

# This script prints the version of Emscripten SDK. The Docker container must
# be started before using this script. This script must be called from the
# "Emscripten" container.

# Exit on error.
set -e

# Apply Emscripten's paths.
echo PREPARING THE SDK ...
cd /home/emscripten/emsdk
source ./emsdk_env.sh
echo

# Print the version of the tools.
echo PRINTING VERSIONS.
lsb_release -a
git version
python3 --version
cmake --version
xz --version
emcc --check
echo
2 changes: 1 addition & 1 deletion dev-inf/Docker/Emscripten/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# Exit on error.
set -e

docker run --name Emscripten -it --mount type=bind,source=/home/xxx/Docker/Emscripten/data,destination=/home/data sha256:xxx
docker run --name Emscripten -it --mount type=bind,source=/home/username/Docker/Emscripten/data,destination=/home/data sha256:b15780ebf6443e3eec8b999a2fdeeb16816ad203eeabd8b6dd12f5c3e8f6be82
6 changes: 6 additions & 0 deletions dev-inf/Docker/Emscripten/start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

# Exit on error.
set -e

docker start Emscripten
2 changes: 1 addition & 1 deletion dev-inf/Docker/MySQL/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:
volumes:
- type: bind
# Path to the local (host) data folder.
source: /home/xxx/Docker/MySQL/mysql_data
source: /home/username/Docker/MySQL/mysql_data
target: /var/lib/mysql
environment:
- 'MYSQL_ROOT_PASSWORD=xxx'
2 changes: 1 addition & 1 deletion dev-inf/Docker/PostgreSQL/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
volumes:
- type: bind
# Path to the local (host) data folder.
source: /home/xxx/Docker/PostgreSQL/postgresql_data
source: /home/username/Docker/PostgreSQL/postgresql_data
target: /var/lib/postgresql/data
environment:
- 'POSTGRES_PASSWORD=xxx'

0 comments on commit eb5f411

Please sign in to comment.