Initial release

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
Marcus Noble 2022-02-20 14:01:28 +00:00
parent f516c3c6f0
commit d933f51db4
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78
3 changed files with 19 additions and 15 deletions

View File

@ -0,0 +1,12 @@
FROM jlesage/baseimage-gui:debian-10
RUN apt-get update && apt-get install -y openscad
RUN sed-patch 's/<application type="normal">/<application type="normal" title="OpenSCAD">/' /etc/xdg/openbox/rc.xml && \
echo "#!/bin/sh\nexport HOME=/home\nexec openscad" > /startapp.sh
ENV APP_NAME="OpenSCAD"
ENV USER_ID=0
ENV GROUP_ID=0
ENV DISPLAY_WIDTH=2340
ENV DISPLAY_HEIGHT=1542
ENV KEEP_APP_RUNNING=1

View File

@ -1,6 +1,6 @@
.DEFAULT_GOAL := default .DEFAULT_GOAL := default
IMAGE ?= docker.cluster.fun/private/docker-openscad:latest IMAGE ?= docker.cluster.fun/averagemarcus/openscad:latest
.PHONY: test # Run all tests, linting and format checks .PHONY: test # Run all tests, linting and format checks
test: lint check-format run-tests test: lint check-format run-tests
@ -78,4 +78,4 @@ help:
@echo "-----------------------------------" @echo "-----------------------------------"
@grep '^.PHONY: .* #' Makefile | sed 's/\.PHONY: \(.*\) # \(.*\)/\1 \2/' | expand -t20 @grep '^.PHONY: .* #' Makefile | sed 's/\.PHONY: \(.*\) # \(.*\)/\1 \2/' | expand -t20
default: test build default: test docker-build

View File

@ -4,28 +4,20 @@ Docker image containing OpenSCAD, accessible via web UI or VNC.
## Features ## Features
## Install * Web based GUI (Port 5800)
* VNC based access (Port 5900)
```sh
```
## Building from source ## Building from source
With Docker:
```sh ```sh
make docker-build make docker-build
``` ```
Standalone:
```sh
make build
```
## Resources ## Resources
* [docker-baseimage-gui](https://github.com/jlesage/docker-baseimage-gui)
* [OpenSCAD](https://openscad.org/)
## Contributing ## Contributing
If you find a bug or have an idea for a new feature please [raise an issue](issues/new) to discuss it. If you find a bug or have an idea for a new feature please [raise an issue](issues/new) to discuss it.