Skip to content

Commit 90d156b

Browse files
authored
add httpd service for installers and fdroid repo (#46)
* feat: add httpd service for installers and fdroid repo * chore: v0.4.5
1 parent 3fe42b6 commit 90d156b

File tree

5 files changed

+26
-1
lines changed

5 files changed

+26
-1
lines changed

balena.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: "Earth Defender's Toolkit Offline"
22
type: "sw.application"
3-
version: 0.4.4
3+
version: 0.4.5
44
description: "A low-energy device that creates an access-point serving applications, bridging them and exposing curated content offline.
55
Software stack and content are automatically updated while online, and can be updated offline."
66
assets:

docker-compose.yml

+8
Original file line numberDiff line numberDiff line change
@@ -146,3 +146,11 @@ services:
146146
volumes:
147147
- pywb-archive:/webarchive
148148
- crawls:/source
149+
# https://hub.docker.com/_/httpd
150+
httpd:
151+
build: services/httpd
152+
ports:
153+
- 8087:80
154+
volumes:
155+
- installers:/usr/local/apache2/htdocs/installers
156+
- fdroid:/usr/local/apache2/htdocs/repo

docker/demo/docker-compose.yml

+7
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,13 @@ services:
107107
PUID: 1000
108108
PGID: 1000
109109
restart: unless-stopped
110+
httpd:
111+
build: ../../services/httpd
112+
ports:
113+
- 8087:80
114+
volumes:
115+
- installers:/usr/local/apache2/htdocs/installers
116+
- fdroid:/usr/local/apache2/htdocs/repo
110117
terrastories-db:
111118
image: postgres:11
112119
ports:

docker/local/docker-compose.yml

+8
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,14 @@ services:
130130
- 8085:8080
131131
volumes:
132132
- mbtiles:/data
133+
# https://hub.docker.com/_/httpd
134+
httpd:
135+
build: ../../services/httpd
136+
ports:
137+
- 8087:80
138+
volumes:
139+
- installers:/usr/local/apache2/htdocs/installers
140+
- fdroid:/usr/local/apache2/htdocs/repo
133141
# Terrastories
134142
terrastories-db:
135143
image: postgres:11

services/httpd/Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
FROM httpd:alpine
2+
RUN printf "<Directory \"/usr/local/apache2/htdocs\">\n Header set Access-Control-Allow-Origin \"*\"\n</Directory>\n" >> /usr/local/apache2/conf/httpd.conf

0 commit comments

Comments
 (0)