diff options
author | Tyler Baker <forcedinductionz@gmail.com> | 2017-10-24 08:54:35 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-24 08:54:35 -0700 |
commit | ee8ef7b266fe45f2f2bc3ea6a8759e012b021e40 (patch) | |
tree | 39ddd561b26957c7ea73003b084cf50008442210 | |
parent | d8fb36073a43e2d47c23b1ef423d2921953e15fc (diff) | |
parent | ee2296c94a6b84a85c52ee8e6c33ec69931bc3ff (diff) |
Merge pull request #8 from montjoie/debianstable
Debianstable
-rw-r--r-- | Dockerfile | 25 |
1 files changed, 15 insertions, 10 deletions
@@ -1,4 +1,6 @@ -FROM bitnami/minideb:unstable +FROM bitnami/minideb:stretch + +RUN apt-get update # Add services helper utilities to start and stop LAVA COPY scripts/stop.sh . @@ -9,21 +11,24 @@ COPY scripts/start.sh . # Log the hostname used during install for the slave name RUN echo 'lava-server lava-server/instance-name string lava-docker-instance' | debconf-set-selections \ && echo 'locales locales/locales_to_be_generated multiselect C.UTF-8 UTF-8, en_US.UTF-8 UTF-8 ' | debconf-set-selections \ - && echo 'locales locales/default_environment_locale select en_US.UTF-8' | debconf-set-selections \ - && DEBIAN_FRONTEND=noninteractive install_packages \ + && echo 'locales locales/default_environment_locale select en_US.UTF-8' | debconf-set-selections + +RUN DEBIAN_FRONTEND=noninteractive apt-get -y install \ locales \ postgresql \ screen \ sudo \ wget \ gnupg \ - vim \ - && service postgresql start \ - && wget http://images.validation.linaro.org/production-repo/production-repo.key.asc \ + vim + +RUN wget http://images.validation.linaro.org/production-repo/production-repo.key.asc \ && apt-key add production-repo.key.asc \ - && echo 'deb http://images.validation.linaro.org/production-repo/ sid main' > /etc/apt/sources.list.d/lava.list \ - && apt-get clean && apt-get update \ - && DEBIAN_FRONTEND=noninteractive install_packages \ + && echo 'deb http://images.validation.linaro.org/production-repo/ stretch-backports main' > /etc/apt/sources.list.d/lava.list \ + && apt-get clean && apt-get update + +RUN service postgresql start \ + && DEBIAN_FRONTEND=noninteractive apt-get -y install \ lava \ qemu-system \ qemu-system-arm \ @@ -40,7 +45,7 @@ RUN echo 'lava-server lava-server/instance-name string lava-docker-instance' | # Create a admin user (Insecure note, this creates a default user, username: admin/admin) RUN /start.sh \ - && echo "from django.contrib.auth.models import User; User.objects.create_superuser('admin', 'admin@localhost.com', 'admin')" | lava-server manage shell \ + && lava-server manage users add --passwd admin --staff --superuser --email admin@example.com admin \ && /stop.sh # Install latest |