Commit 2606a934 authored by jlopez's avatar jlopez
Browse files
parents 1c65f9b5 75fee89a
FROM alpine:3.9
MAINTAINER remyd1 - https://github.com/remyd1
RUN apk --update add php-apache2 php7-session php7-mysqli && rm -f /var/cache/apk/*
RUN mkdir /app && cd /app && \
wget https://gitlab.mbb.univ-montp2.fr/jlopez/wicopa/-/archive/v0.2/wicopa-v0.2.tar.gz && \
tar -xf wicopa-v0.2.tar.gz && ln -s wicopa-v0.2 wicopa && \
cp wicopa/conf/Conf.php.sample wicopa/conf/Conf.php && \
chown -R apache:apache /app && \
sed -i "s#DB_NAME = ''#DB_NAME = 'wicopa'#" wicopa/conf/Conf.php && \
sed -i "s#DB_HOSTNAME = ''#DB_HOSTNAME = 'wicopadb'#" wicopa/conf/Conf.php && \
sed -i "s#DB_USERNAME = ''#DB_USERNAME = 'wicopauser'#" wicopa/conf/Conf.php && \
sed -i "s#DB_PP = ''#DB_PP = 'w1c0Pa5s'#" wicopa/conf/Conf.php && \
sed -i "s#'to_replace_with_your_admin_pass'#'450cb0c92db35549cb926efc391df2ceae4b48d1'#" wicopa/conf/Conf.php
RUN sed -i 's/^#ServerName .*/ServerName localhost:80/g' /etc/apache2/httpd.conf && \
sed -i 's#/var/www/localhost/htdocs#/app/wicopa#g' /etc/apache2/httpd.conf && \
sed -i 's/^LoadModule php7_module.*/LoadModule php7_module modules\/libphp7\.so/g' /etc/apache2/httpd.conf && \
sed -i 's/DirectoryIndex index\.html/DirectoryIndex index\.php/g' /etc/apache2/httpd.conf && \
sed -ri 's#^DocumentRoot .*#DocumentRoot "/app/wicopa"#g' /etc/apache2/httpd.conf && \
sed -i 's#AllowOverride None#AllowOverride All#g' /etc/apache2/httpd.conf && \
echo "AddType application/x-httpd-php .php" >> /etc/apache2/httpd.conf
RUN echo "Success"
EXPOSE 80
ENTRYPOINT httpd -D FOREGROUND && /bin/bash
wicopa.sql
conf/Conf.php
*.swp
# Installing wicopa
```bash
git clone https://gitlab.mbb.univ-montp2.fr/jlopez/wicopa.git
apt-get install -y apache2 mariadb-server php7.0 phpmyadmin libapache2-mod-php7.0 pv
a2enmod php7.0
......@@ -29,4 +31,18 @@ pv wicopa.sql.gz | gunzip | mysql -u wicopauser -p wicopa
vim conf/Conf.php
```
# Using Docker
```bash
git clone https://gitlab.mbb.univ-montp2.fr/jlopez/wicopa.git
# you need to have wicopa.sql here
wget http://web.mbb.univ-montp2.fr/download/wicopa.sql.gz
gunzip -d wicopa.sql.gz
mkdir -p /data/mysql/wicopa
docker-compose up --build
# you can access to it at http://127.0.0.1:8000
# you can login as "admin" with password w1c0Pa5s
```
# wicopa
Web Interface Container Packaging
\ No newline at end of file
Web Interface Container Packaging
# Install
Check [INSTALL](INSTALL.md)
** ROADMAP ideas **
- Dockerize Wicopa (except database ?) / issue [#1](https://gitlab.mbb.univ-montp2.fr/jlopez/wicopa/issues/1),
- Recode in PHP the update codes for package managers / issue [#2](https://gitlab.mbb.univ-montp2.fr/jlopez/wicopa/issues/2),
- Create a session / user table. Connect and bind to LDAP,
- Create an history by user session,
- Give the possibility to users to share their recipes (when these recipes are validated ?) by adding some other tags (docker's metadatas, singularity's LABELs),
- Give the possibility to browse shared recipes by tags,
- Adding a "local field", with checkbox on the user panel to allow a local admin to add a custom field on each recipe (optionnal for the user) (see [#7](https://gitlab.mbb.univ-montp2.fr/jlopez/wicopa/issues/7))
- Create a session / user table. Connect and bind to LDAP [#9](https://gitlab.mbb.univ-montp2.fr/jlopez/wicopa/issues/9),
- Create an history by user session [#10](https://gitlab.mbb.univ-montp2.fr/jlopez/wicopa/issues/10),
- Give the possibility to users to share their recipes (when these recipes are validated ?) by adding some other tags (docker's metadatas, singularity's LABELs) [#10](https://gitlab.mbb.univ-montp2.fr/jlopez/wicopa/issues/10) and [#11](https://gitlab.mbb.univ-montp2.fr/jlopez/wicopa/issues/11),
- Give the possibility to browse the recipes shared using keywords [#11](https://gitlab.mbb.univ-montp2.fr/jlopez/wicopa/issues/11),
- Give the possibility to launchs Diffs between recipes,
- Code import from Dockerhub, quay.io, SingularityHub... / issue [#4](https://gitlab.mbb.univ-montp2.fr/jlopez/wicopa/issues/4),
version: '3'
services:
apache:
build:
context: .
dockerfile: .docker/web/Dockerfile
container_name: wicopaweb
restart: always
ports:
- "8000:80"
depends_on:
- mariadb
mariadb:
image: mariadb:10.3
restart: always
container_name: wicopadb
volumes:
- /data/mysql/wicopa:/var/lib/mysql
- ./wicopa.sql:/docker-entrypoint-initdb.d/wicopa.sql
environment:
MYSQL_ROOT_PASSWORD: w1c0Pa5s
MYSQL_DATABASE: wicopa
MYSQL_USER: wicopauser
MYSQL_PASSWORD: w1c0Pa5s
expose:
- "3306"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment