Skip to content

Commit 62fb034

Browse files
committed
Best effort attempt at making a disourse image
1 parent 4e5d17a commit 62fb034

File tree

4 files changed

+25
-0
lines changed

4 files changed

+25
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
temp

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ARG DISCOURSE_VERSION="2.0.20251003-1437"
2+
FROM discourse/base:${DISCOURSE_VERSION}

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
11
# discourse-docker
22
Pretendo instance of discourse-docker, to make it a little more friendly to deploy as a container
3+
4+
Todo: figure out how to run this. No idea whats going on
5+
6+
Maybe we should just use the launcher completely:
7+
- Make a web-only config file: `web-only.yml`
8+
- `launcher bootstrap web-only --skip-prereqs` -> build an image
9+
- `launcher start-cmd web-only --skip-prereqs` -> get start cmd
10+
- extract image name from start-cmd
11+
- `docker push IMAGE_NAME`

retrieve-version.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
# Download deps
4+
rm -rf temp &> /dev/null
5+
mkdir temp &> /dev/null
6+
git clone https://github.com/discourse/discourse_docker temp/repo &> /dev/null
7+
8+
# Get base version
9+
image_line=$(grep '^image=' temp/repo/launcher)
10+
version="${image_line##*:}"
11+
version="${version%\"}"
12+
13+
printf $version

0 commit comments

Comments
 (0)