First commit

This commit is contained in:
dgonzalez
2016-08-31 12:56:35 +02:00
commit 92e360ec58
2 changed files with 113 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
FROM gcr.io/stacksmith-images/ubuntu-buildpack:14.04-r8
MAINTAINER Bitnami <containers@bitnami.com>
ENV BITNAMI_APP_NAME=codeigniter \
BITNAMI_APP_VERSION=3.1.0 \
PATH=/opt/bitnami/java/bin:/opt/bitnami/php/bin:/opt/bitnami/mysql/bin/:$PATH
# Install java dependency
RUN bitnami-pkg install java-1.8.0_91-0 --checksum 64cf20b77dc7cce3a28e9fe1daa149785c9c8c13ad1249071bc778fa40ae8773
# Install codeigniter related dependencies
RUN bitnami-pkg install php-7.0.10-0 --checksum 5f2ec47fcfb2fec5197af6760c5053dd5dee8084d70a488fd5ea77bd4245c6b9
RUN bitnami-pkg install mysql-client-10.1.13-4 --checksum 14b45c91dd78b37f0f2366712cbe9bfdf2cb674769435611955191a65dbf4976
RUN bitnami-pkg install mariadb-10.1.14-4 --checksum 4a75f4f52587853d69860662626c64a4540126962cd9ee9722af58a3e7cfa01b
# Install codeigniter module
RUN bitnami-pkg install codeigniter-3.1.0-0 --checksum 6ab5915956daab8686e48a0eb5b18155b9da2e1e46d1c4d2008d760702ec86c3
EXPOSE 8000
USER bitnami
WORKDIR /projects
# Interact with Eclipse che
LABEL che:server:8000:ref=codeigniter che:server:8000:protocol=http
ENV TERM=xterm
CMD ["tail", "-f", "/dev/null"]

View File

@@ -0,0 +1,82 @@
{
"v": "4.0",
"workspace": {
"name": "codeigniter",
"defaultEnv": "codeigniter",
"environments": [
{
"name": "codeigniter",
"recipe": null,
"machineConfigs": [
{
"name": "ws-machine",
"limits": {
"ram": 1024
},
"source": {
"type": "dockerfile",
"location": "https://raw.githubusercontent.com/dgonzalezruiz/bitnami-docker-codeigniter/che/.codenvy.dockerfile"
},
"type": "docker",
"dev": true
}
]
}
],
"projects": [
{
"name": "codeigniter-sample",
"type": "blank",
"path": "/codeigniter-sample",
"source": {
"type": "git",
"location": "https://github.com/dgonzalezruiz/bitnami-docker-codeigniter",
"parameters": {
"branch": "che",
"keepVcs": "true"
}
},
"mixins": [
"git",
"pullrequest"
],
"attributes": {
"local_branch": [ "contrib" ],
"contribute_to_branch" : [ "master" ]
},
"modules": [],
"problems": []
}
],
"commands": [
{
"name": "run",
"type": "custom",
"commandLine": "source /opt/bitnami/stacksmith-utils.sh && print_welcome_page && cd ${current.project.path}/app_template && php -S 0.0.0.0:8000 -t $PWD",
"attributes": {
"previewUrl": "http://${server.port.8000}/"
}
},
{
"name": "create project - run first",
"type": "custom",
"commandLine": "source /opt/bitnami/stacksmith-utils.sh && print_welcome_page && if [ -d ${current.project.path} ] ; then cd ${current.project.path} ; fi && nami execute codeigniter createProject app_template && php -S 0.0.0.0:8000 -t $PWD/app_template",
"attributes": {
"previewUrl": "http://${server.port.8000}/"
}
}
]
},
"ide": {
"onProjectsLoaded": {
"actions": [
{
"properties": {
"name": "create project - run first"
},
"id": "runCommand"
}
]
}
}
}