Skip to content

Commit 6eff2ea

Browse files
committed
add .ximeralocal from jason-problemStyleRevamp
1 parent a4ea7f2 commit 6eff2ea

File tree

106 files changed

+14008
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+14008
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"name": "Ximera Dev Container",
3+
// "image": "ghcr.io/ximeraproject/xake2024:latest",
4+
"dockerComposeFile": ["docker-compose.yml"],
5+
"service": "app",
6+
"workspaceFolder": "/code",
7+
"forwardPorts": [2080], // Port to access the web server
8+
"portsAttributes": {
9+
"2080": {
10+
"label": "Web Server",
11+
"onAutoForward": "notify",
12+
"requireLocalPort": true
13+
}
14+
},
15+
// "portsAttributes": {
16+
// "2000": {
17+
// "label": "XimeraServer",
18+
// "onAutoForward": "openBrowserOnce"
19+
// }
20+
// },
21+
// "otherPortsAttributes": {
22+
// "onAutoForward": "ignore",
23+
// },
24+
// "remoteEnv": {
25+
// "DEV_MODE": "true"
26+
// },
27+
// "remoteUser": "vscode",
28+
// "postStartCommand": "echo 'Ximera DevContainer started!'",
29+
"customizations": {
30+
// Configure properties specific to VS Code.
31+
"vscode": {
32+
// Add the IDs of extensions you want installed when the container is created.
33+
"extensions": [
34+
"james-yu.latex-workshop",
35+
// "ritwickdey.liveserver",
36+
"spencerwmiles.vscode-task-buttons"
37+
]
38+
}
39+
}
40+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
services:
2+
app:
3+
image: ghcr.io/ximeraproject/ximeralatex:v2.6.8
4+
# image: ghcr.io/ximeraproject/ximeralatex:v2.6.8-full
5+
volumes:
6+
# This is where VS Code should expect to find your project's source code and the value of "workspaceFolder" in .devcontainer/devcontainer.json
7+
- ..:/code:cached
8+
command: /bin/sh -c "while sleep 1000; do :; done" # run forever
9+
network_mode: service:ximeraserver
10+
ximeraserver:
11+
image: registry.gitlab.kuleuven.be/wet/ximera/ximeradocker:2.3_b
12+
ports:
13+
- "2080:2000" # Expose Ximera on port 2080
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: Build and Publish Docker Image on Tag
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*' # Trigger the workflow when a new tag starting with 'v' is pushed
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
# Step 1: Set up Docker Buildx (supports layer caching)
14+
- name: Set up Docker Buildx
15+
uses: docker/setup-buildx-action@v2
16+
17+
# Step 2: Restore cache for Docker layers
18+
- name: Cache Docker layers
19+
uses: actions/cache@v4
20+
with:
21+
path: /tmp/.buildx-cache
22+
key: buildx-cache-${{ github.sha }}
23+
restore-keys: |
24+
buildx-cache-${{ github.sha }}
25+
buildx-cache-
26+
buildx
27+
28+
# Step 3: Check out the repository
29+
- name: Checkout repository
30+
uses: actions/checkout@v4
31+
32+
# # Step 4: Log in to registry
33+
- name: Log into registry
34+
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
35+
36+
- name: Initialize cache directory
37+
run: mkdir -p /tmp/.buildx-cache
38+
39+
- name: Debug cache
40+
run: ls -l /tmp/.buildx-cache
41+
42+
# Step 5: Build and push the Docker image with caching
43+
- name: Build and Push standard Docker image
44+
run: |
45+
docker buildx build \
46+
--cache-from=type=local,src=/tmp/.buildx-cache \
47+
--cache-to=type=local,dest=/tmp/.buildx-cache,mode=max \
48+
--tag ghcr.io/ximeraproject/ximeralatex:${{ github.ref_name }} \
49+
--file docker/Dockerfile \
50+
--push .
51+
52+
- name: Build and Push full Docker image
53+
run: |
54+
docker buildx build \
55+
--cache-from=type=local,src=/tmp/.buildx-cache \
56+
--cache-to=type=local,dest=/tmp/.buildx-cache,mode=max \
57+
--tag ghcr.io/ximeraproject/ximeralatex:${{ github.ref_name }}-full \
58+
--file docker/Dockerfile.full \
59+
--push .
60+
61+
# - name: Debug cache
62+
# run: ls -l /tmp/.buildx-cache
63+
64+
# - name: Save cache
65+
# uses: actions/cache@v4
66+
# with:
67+
# path: /tmp/.buildx-cache
68+
# key: buildx-cache-${{ github.sha }}-saved
69+

0 commit comments

Comments
 (0)