[devdocsgjs/fix] Fix permissions issues
- From: Meg Ford <megford src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/fix] Fix permissions issues
- Date: Sun, 29 Dec 2019 01:03:59 +0000 (UTC)
commit 65f43bfd4f2f53e90e760cd1d4aaf54885e672f9
Author: Meg Ford <megford gnome org>
Date: Sat Dec 28 19:03:46 2019 -0600
Fix permissions issues
Dockerfile | 5 ++++-
docker-compose.yml | 9 +++++++++
2 files changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/Dockerfile b/Dockerfile
index ec36ad69..7d95c155 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -24,6 +24,7 @@ RUN dnf install -y 'dnf-command(builddep)' @development-tools bzip2 gcc-c++ && \
dnf clean all && \
rm -rf /var/cache/yum
+RUN useradd -rm -d /opt/devdocs -s /bin/bash -g root -u 1000 rbuser
# These are extra GIRs we can't install with dnf
COPY lib/docs/scrapers/gnome/girs/GtkosxApplication-1.0.gir /usr/share/gir-1.0/
COPY lib/docs/scrapers/gnome/girs/mutter-3 /usr/lib64/mutter-3
@@ -93,5 +94,7 @@ RUN apk --update add nodejs build-base libstdc++ gzip git zlib-dev && \
rm -rf /var/cache/apk/* /tmp ~/.gem /root/.bundle/cache \
/usr/local/bundle/cache /usr/lib/node_modules
+RUN chmod -R 775 /opt/devdocs
+RUN chown -R rbuser:root /opt/devdocs
EXPOSE 9292
-CMD rackup -o 0.0.0.0
+CMD bundle exec rackup -o 0.0.0.0
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 00000000..2f2aa548
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,9 @@
+version: '3'
+services:
+ web:
+ build: .
+ command: bundle exec rackup -o 0.0.0.0
+ volumes:
+ - .:/myapp
+ ports:
+ - "9292:9292"
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]