INDEX

docker_image

Field Type Required
docker_image boolean No

Normally Spaceify's default image is used as the base image for application images. The application images can be customized with the instructions in the manifest (see install_commands).

It is possible to instruct the installation process to create a custom image for the application. This field is used to tell the installer to create the image by using the custom Dockerfile supplied with the application package. The Dockerfile must be located in the application/ directory of the application package. The application/ directory is also the context of the build. Any files required during the build must be in this directory or its subdirectories - e.g. when using ADD instruction in the Dockerfile. After the creation of the custom image the installation process proceeds as it normally would with the default image.

Creating a custom image is not always necessary or even desired. If just some Node.js or Debian package etc. are required to be installed use the manifests install_commands field for this purpose. Create a new image if the default image doesn't meet your requirements.

The field must have one of the boolean values.

Value Descripton
true A custom image is created for the application.
false The default image is used and no custom image is created for the application. This can be achieved also by not defining this optional docker_image field.

Currently the default "spaceifyubuntu" image is created using this Dockerfile. Modify it to better suit your needs or create your own.

# VERSION 1.0.0
FROM ubuntu:14.04
MAINTAINER Spaceify Oy

RUN apt-get update

RUN apt-get upgrade -y

RUN apt-get install -y openssh-server screen unzip netcat nano dnsutils

RUN apt-get install -y python-software-properties python g++ make software-properties-common fakeroot

RUN apt-get install -y libssl-dev libsqlite3-dev libzip-dev

RUN apt-get install -y curl openssl sqlite3

RUN add-apt-repository ppa:chris-lea/node.js

RUN apt-get update

RUN apt-get install -y nodejs

RUN npm install npm -g

RUN npm cache clear -f

RUN npm install -g n

RUN n 6.2.2

RUN mkdir -p /var/run/sshd

# username: spaceify, password: spaceify123
RUN useradd -u 12345 -g users -d /home/spaceify -s /bin/bash -p '$1$xyz$YbrofsNE.j8evvfa3Sivo1' spaceify
RUN usermod -aG sudo spaceify
 
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
Close
copyright © Spaceify.org 2014