Skip to content

Commit 45fb533

Browse files
author
Jason Nowell
committed
Adding a lot of new server files - probably some I shouldn't have...
1 parent e6b76c6 commit 45fb533

Some content is hidden

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

42 files changed

+96666
-4
lines changed

.github/workflows/docker-image.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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+
permissions:
13+
actions: read
14+
contents: read
15+
packages: write
16+
17+
steps:
18+
# Step 1: Set up Docker Buildx (supports layer caching)
19+
- name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v2
21+
22+
# Step 2: Restore cache for Docker layers
23+
- name: Cache Docker layers
24+
uses: actions/cache@v4
25+
with:
26+
path: /tmp/.buildx-cache
27+
key: buildx-cache-${{ github.sha }}
28+
restore-keys: |
29+
buildx-cache-${{ github.sha }}
30+
buildx-cache-
31+
buildx
32+
33+
# Step 3: Check out the repository
34+
- name: Checkout repository
35+
uses: actions/checkout@v4
36+
37+
# # Step 4: Log in to registry
38+
- name: Log into registry
39+
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
40+
41+
- name: Initialize cache directory
42+
run: mkdir -p /tmp/.buildx-cache
43+
44+
- name: Debug cache
45+
run: ls -l /tmp/.buildx-cache
46+
47+
# Step 5: Build and push the Docker image with caching
48+
- name: Build and Push Docker image
49+
run: |
50+
docker buildx build \
51+
--cache-from=type=local,src=/tmp/.buildx-cache \
52+
--cache-to=type=local,dest=/tmp/.buildx-cache,mode=max \
53+
--tag ghcr.io/ximeraproject/ximeraserver:${{ github.ref_name }} \
54+
--push .
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Build and Publish Docker Image on Tag
2+
3+
on:
4+
push:
5+
branches:
6+
- 'development'
7+
tags-ignore:
8+
- '**' # ignore all tags
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
permissions:
15+
actions: read
16+
contents: read
17+
packages: write
18+
19+
steps:
20+
# Step 1: Set up Docker Buildx (supports layer caching)
21+
- name: Set up Docker Buildx
22+
uses: docker/setup-buildx-action@v2
23+
24+
# Step 2: Restore cache for Docker layers
25+
- name: Cache Docker layers
26+
uses: actions/cache@v4
27+
with:
28+
path: /tmp/.buildx-cache
29+
key: buildx-cache-${{ github.sha }}
30+
restore-keys: |
31+
buildx-cache-${{ github.sha }}
32+
buildx-cache-
33+
buildx
34+
35+
# Step 3: Check out the repository
36+
- name: Checkout repository
37+
uses: actions/checkout@v4
38+
39+
# # Step 4: Log in to registry
40+
- name: Log into registry
41+
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
42+
43+
- name: Initialize cache directory
44+
run: mkdir -p /tmp/.buildx-cache
45+
46+
- name: Debug cache
47+
run: ls -l /tmp/.buildx-cache
48+
49+
# Step 5: Build and push the Docker image with caching
50+
- name: Build and Push Docker image
51+
run: |
52+
docker buildx build \
53+
--cache-from=type=local,src=/tmp/.buildx-cache \
54+
--cache-to=type=local,dest=/tmp/.buildx-cache,mode=max \
55+
--tag ghcr.io/ximeraproject/ximeraserver:latest \
56+
--push .

.gitignore

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
2+
# node_modules is big, and presumably in/linked from the baseverver image
3+
node_modules
4+
5+
6+
# to be (re-)generated with 'npm run build'
7+
*.min.js
8+
*.min.js.map
9+
10+
# folders created/filled while running the ximeraserver
11+
repositories
12+
mongodb
13+
gpg
14+
15+
# generated while running a ximeraserver
16+
dump.rdb
17+
18+
119
lib-cov
220
ecosystem.config.js
321
private_key.pem
@@ -17,14 +35,11 @@ results
1735

1836
*~
1937

20-
public/stylesheets/base.css
38+
# public/stylesheets/base.css
2139

2240
npm-debug.log
23-
node_modules
2441
components
2542
bower_components
26-
nginx.conf
2743

2844
environment.sh
2945
.env
30-
env.sh

.travis.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
language: node_js
2+
services: mongodb
3+
node_js:
4+
- 'node'
5+
cache:
6+
directories:
7+
- node_modules
8+
before_script:
9+
- npm install -g gulp-cli
10+
- gulp
11+
script: mocha

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM ghcr.io/ximeraproject/ximerabase:v1.3
2+
3+
WORKDIR /usr/var/server
4+
ADD . /usr/var/server
5+
6+
7+
ENTRYPOINT [ "./start.sh" ]
8+
9+

0 commit comments

Comments
 (0)