Permalink
Browse files

Re-add all the docker stuff that got deleted mysteriously.

  • Loading branch information...
eberhardtm committed Mar 21, 2017
1 parent 4306153 commit f607d6d2abb2eea5cd7d3a1ecae93614eef96aa2
View
@@ -0,0 +1,20 @@
+FROM centos:7
+MAINTAINER "Ted Eberhard" <eberhardtm@appstate.edu>
+ENV container docker
+USER root
+RUN yum -y install httpd;
+# install php7 when canopy core is ready
+#RUN rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
+RUN rpm -Uvh http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
+#RUN yum -y install php70w php70w-common php70w-mysql php70w-pgsql php70w-devel php70w-gd php70w-pecl-memcache php70w-pspell php70w-snmp php70w-xmlrpc php70w-xml;
+RUN yum -y install php php-common php-mysql php-pgsql php-devel php-gd php-pecl-memcache php-pspell php-snmp php-xmlrpc php-xml;
+RUN yum -y install phpmyadmin phpPgAdmin vim
+RUN yum -y update
+ADD docker_conf/phpMyAdmin.conf /etc/httpd/conf.d/phpMyAdmin.conf
+ADD docker_conf/phpPgAdmin.conf /etc/httpd/conf.d/phpPgAdmin.conf
+ADD docker_conf/myadmin_config.inc.php /etc/phpMyAdmin/config.inc.php
+ADD docker_conf/pgadmin_config.inc.php /etc/phpPgAdmin/config.inc.php
+ADD docker-entry.sh /docker-entry.sh
+EXPOSE 80
+CMD ["-D","FOREGROUND"]
+ENTRYPOINT ["/docker-entry.sh"]
View
@@ -0,0 +1,26 @@
+version: '3'
+services:
+ mysql_db:
+ image: mariadb
+ environment:
+ MYSQL_USER: phpwebsite
+ MYSQL_PASSWORD: phpwebsite
+ MYSQL_DATABASE: phpwebsite
+ MYSQL_ROOT_PASSWORD: phpwebsite
+
+ postgres_db:
+ image: postgres
+ environment:
+ POSTGRES_PASSWORD: phpwebsite
+ POSTGRES_USER: phpwebsite
+ POSTGRES_DB: phpwebsite
+
+ web:
+ build: .
+ ports:
+ - "8080:80"
+ depends_on:
+ - mysql_db
+ - postgres_db
+ volumes:
+ - .:/var/www/html
View
@@ -0,0 +1,3 @@
+#!/bin/bash
+chown -R apache:apache /var/www/html/config /var/www/html/files /var/www/html/images /var/www/html/logs
+exec /usr/sbin/httpd -D FOREGROUND
@@ -0,0 +1,111 @@
+<?php
+/**
+ * phpMyAdmin configuration file, you can use it as base for the manual
+ * configuration. For easier setup you can use "setup/".
+ *
+ * All directives are explained in Documentation.html and on phpMyAdmin
+ * wiki <http://wiki.phpmyadmin.net>.
+ */
+
+/*
+ * This is needed for cookie based authentication to encrypt password in
+ * cookie
+ */
+$cfg['blowfish_secret'] = '82oun6IkCljQZB2ScSqmf7C12M1jclcM'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
+
+/**
+ * Server(s) configuration
+ */
+$i = 0;
+
+// The $cfg['Servers'] array starts with $cfg['Servers'][1]. Do not use
+// $cfg['Servers'][0]. You can disable a server config entry by setting host
+// to ''. If you want more than one server, just copy following section
+// (including $i incrementation) serveral times. There is no need to define
+// full server array, just define values you need to change.
+$i++;
+$cfg['Servers'][$i]['host'] = 'mysql_db'; // MySQL hostname or IP address
+$cfg['Servers'][$i]['port'] = ''; // MySQL port - leave blank for default port
+$cfg['Servers'][$i]['socket'] = ''; // Path to the socket - leave blank for default socket
+$cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')
+$cfg['Servers'][$i]['extension'] = 'mysqli'; // The php MySQL extension to use ('mysql' or 'mysqli')
+$cfg['Servers'][$i]['compress'] = FALSE; // Use compressed protocol for the MySQL connection
+ // (requires PHP >= 4.3.0)
+$cfg['Servers'][$i]['controluser'] = ''; // MySQL control user settings
+ // (this user must have read-only
+$cfg['Servers'][$i]['controlpass'] = ''; // access to the "mysql/user"
+ // and "mysql/db" tables).
+ // The controluser is also
+ // used for all relational
+ // features (pmadb)
+$cfg['Servers'][$i]['auth_type'] = 'cookie'; // Authentication method (config, http or cookie based)?
+$cfg['Servers'][$i]['user'] = ''; // MySQL user
+$cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed
+ // with 'config' auth_type)
+$cfg['Servers'][$i]['only_db'] = ''; // If set to a db-name, only
+ // this db is displayed in left frame
+ // It may also be an array of db-names, where sorting order is relevant.
+$cfg['Servers'][$i]['hide_db'] = ''; // Database name to be hidden from listings
+$cfg['Servers'][$i]['verbose'] = ''; // Verbose name for this host - leave blank to show the hostname
+
+$cfg['Servers'][$i]['pmadb'] = ''; // Database used for Relation, Bookmark and PDF Features
+ // (see scripts/create_tables.sql)
+ // - leave blank for no support
+ // DEFAULT: 'phpmyadmin'
+$cfg['Servers'][$i]['bookmarktable'] = ''; // Bookmark table
+ // - leave blank for no bookmark support
+ // DEFAULT: 'pma_bookmark'
+$cfg['Servers'][$i]['relation'] = ''; // table to describe the relation between links (see doc)
+ // - leave blank for no relation-links support
+ // DEFAULT: 'pma_relation'
+$cfg['Servers'][$i]['table_info'] = ''; // table to describe the display fields
+ // - leave blank for no display fields support
+ // DEFAULT: 'pma_table_info'
+$cfg['Servers'][$i]['table_coords'] = ''; // table to describe the tables position for the PDF schema
+ // - leave blank for no PDF schema support
+ // DEFAULT: 'pma_table_coords'
+$cfg['Servers'][$i]['pdf_pages'] = ''; // table to describe pages of relationpdf
+ // - leave blank if you don't want to use this
+ // DEFAULT: 'pma_pdf_pages'
+$cfg['Servers'][$i]['column_info'] = ''; // table to store column information
+ // - leave blank for no column comments/mime types
+ // DEFAULT: 'pma_column_info'
+$cfg['Servers'][$i]['history'] = ''; // table to store SQL history
+ // - leave blank for no SQL query history
+ // DEFAULT: 'pma_history'
+$cfg['Servers'][$i]['verbose_check'] = TRUE; // set to FALSE if you know that your pma_* tables
+ // are up to date. This prevents compatibility
+ // checks and thereby increases performance.
+$cfg['Servers'][$i]['AllowRoot'] = TRUE; // whether to allow root login
+$cfg['Servers'][$i]['AllowDeny']['order'] // Host authentication order, leave blank to not use
+ = '';
+$cfg['Servers'][$i]['AllowDeny']['rules'] // Host authentication rules, leave blank for defaults
+ = array();
+$cfg['Servers'][$i]['AllowNoPassword'] // Allow logins without a password. Do not change the FALSE
+ = FALSE; // default unless you're running a passwordless MySQL server
+$cfg['Servers'][$i]['designer_coords'] // Leave blank (default) for no Designer support, otherwise
+ = ''; // set to suggested 'pma_designer_coords' if really needed
+$cfg['Servers'][$i]['bs_garbage_threshold'] // Blobstreaming: Recommented default value from upstream
+ = 50; // DEFAULT: '50'
+$cfg['Servers'][$i]['bs_repository_threshold'] // Blobstreaming: Recommented default value from upstream
+ = '32M'; // DEFAULT: '32M'
+$cfg['Servers'][$i]['bs_temp_blob_timeout'] // Blobstreaming: Recommented default value from upstream
+ = 600; // DEFAULT: '600'
+$cfg['Servers'][$i]['bs_temp_log_threshold'] // Blobstreaming: Recommented default value from upstream
+ = '32M'; // DEFAULT: '32M'
+/*
+ * End of servers configuration
+ */
+
+/*
+ * Directories for saving/loading files from server
+ */
+$cfg['UploadDir'] = '/var/lib/phpMyAdmin/upload';
+$cfg['SaveDir'] = '/var/lib/phpMyAdmin/save';
+
+/*
+ * Disable the default warning that is displayed on the DB Details Structure
+ * page if any of the required Tables for the relation features is not found
+ */
+$cfg['PmaNoRelation_DisableWarning'] = TRUE;
+?>
@@ -0,0 +1,155 @@
+<?php
+
+ /**
+ * Central phpPgAdmin configuration. As a user you may modify the
+ * settings here for your particular configuration.
+ *
+ * $Id: config.inc.php-dist,v 1.55 2008/02/18 21:10:31 xzilla Exp $
+ */
+
+ // An example server. Create as many of these as you wish,
+ // indexed from zero upwards.
+
+ // Display name for the server on the login screen
+ $conf['servers'][0]['desc'] = 'PostgreSQL';
+
+ // Hostname or IP address for server. Use '' for UNIX domain socket.
+ // use 'localhost' for TCP/IP connection on this computer
+ $conf['servers'][0]['host'] = 'postgres_db';
+
+ // Database port on server (5432 is the PostgreSQL default)
+ $conf['servers'][0]['port'] = 5432;
+
+ // Database SSL mode
+ // Possible options: disable, allow, prefer, require
+ // To require SSL on older servers use option: legacy
+ // To ignore the SSL mode, use option: unspecified
+ $conf['servers'][0]['sslmode'] = 'allow';
+
+ // Change the default database only if you cannot connect to template1.
+ // For a PostgreSQL 8.1+ server, you can set this to 'postgres'.
+ $conf['servers'][0]['defaultdb'] = 'template1';
+
+ // Specify the path to the database dump utilities for this server.
+ // You can set these to '' if no dumper is available.
+ $conf['servers'][0]['pg_dump_path'] = '/usr/bin/pg_dump';
+ $conf['servers'][0]['pg_dumpall_path'] = '/usr/bin/pg_dumpall';
+
+ // Example for a second server (PostgreSQL for Windows)
+ //$conf['servers'][1]['desc'] = 'Test Server';
+ //$conf['servers'][1]['host'] = '127.0.0.1';
+ //$conf['servers'][1]['port'] = 5432;
+ //$conf['servers'][1]['sslmode'] = 'allow';
+ //$conf['servers'][1]['defaultdb'] = 'template1';
+ //$conf['servers'][1]['pg_dump_path'] = 'C:\\Program Files\\PostgreSQL\\8.0\\bin\\pg_dump.exe';
+ //$conf['servers'][1]['pg_dumpall_path'] = 'C:\\Program Files\\PostgreSQL\\8.0\\bin\\pg_dumpall.exe';
+
+
+ /* Groups definition */
+ /* Groups allow administrators to logicaly group servers together under
+ * group nodes in the left browser tree
+ *
+ * The group '0' description
+ */
+ //$conf['srv_groups'][0]['desc'] = 'group one';
+ /* A server can belong to multi groups. Here server 1 is referenced in both
+ * 'group one' and 'group two'*/
+ //$conf['srv_groups'][1]['desc'] = 'group two';
+ //$conf['srv_groups'][1]['servers'] = '3,1';
+
+ /* A group can be nested in one or more existing groups using the 'parents'
+ * parameter. Here the group 'group three' contains only one server and will
+ * appear as a subgroup in both 'group one' and 'group two':
+ */
+ //$conf['srv_groups'][2]['desc'] = 'group three';
+ //$conf['srv_groups'][2]['servers'] = '4';
+ //$conf['srv_groups'][2]['parents'] = '0,1';
+
+ /* Warning: Only groups with no parents appears at the root of the tree. */
+
+
+ // Default language. E.g.: 'english', 'polish', etc. See lang/ directory
+ // for all possibilities. If you specify 'auto' (the default) it will use
+ // your browser preference.
+ $conf['default_lang'] = 'auto';
+
+ // AutoComplete uses AJAX interaction to list foreign key values
+ // on insert fields. It currently only works on single column
+ // foreign keys. You can choose one of the following values:
+ // 'default on' enables AutoComplete and turns it on by default.
+ // 'default off' enables AutoComplete but turns it off by default.
+ // 'disable' disables AutoComplete.
+ $conf['autocomplete'] = 'default on';
+
+ // If extra login security is true, then logins via phpPgAdmin with no
+ // password or certain usernames (pgsql, postgres, root, administrator)
+ // will be denied. Only set this false once you have read the FAQ and
+ // understand how to change PostgreSQL's pg_hba.conf to enable
+ // passworded local connections.
+ $conf['extra_login_security'] = true;
+
+ // Only show owned databases?
+ // Note: This will simply hide other databases in the list - this does
+ // not in any way prevent your users from seeing other database by
+ // other means. (e.g. Run 'SELECT * FROM pg_database' in the SQL area.)
+ $conf['owned_only'] = false;
+
+ // Display comments on objects? Comments are a good way of documenting
+ // a database, but they do take up space in the interface.
+ $conf['show_comments'] = true;
+
+ // Display "advanced" objects? Setting this to true will show
+ // aggregates, types, operators, operator classes, conversions,
+ // languages and casts in phpPgAdmin. These objects are rarely
+ // administered and can clutter the interface.
+ $conf['show_advanced'] = false;
+
+ // Display "system" objects?
+ $conf['show_system'] = false;
+ // Minimum length users can set their password to.
+ $conf['min_password_length'] = 1;
+
+ // Width of the left frame in pixels (object browser)
+ $conf['left_width'] = 200;
+
+ // Which look & feel theme to use
+ $conf['theme'] = 'default';
+
+ // Show OIDs when browsing tables?
+ $conf['show_oids'] = false;
+
+ // Max rows to show on a page when browsing record sets
+ $conf['max_rows'] = 30;
+
+ // Max chars of each field to display by default in browse mode
+ $conf['max_chars'] = 50;
+
+ // Send XHTML strict headers?
+ $conf['use_xhtml_strict'] = false;
+
+ // Base URL for PostgreSQL documentation.
+ // '%s', if present, will be replaced with the PostgreSQL version
+ // (e.g. 8.4 )
+ $conf['help_base'] = 'http://www.postgresql.org/docs/%s/interactive/';
+
+ // Configuration for ajax scripts
+ // Time in seconds. If set to 0, refreshing data using ajax will be disabled (locks and activity pages)
+ $conf['ajax_refresh'] = 3;
+
+ /** Plugins management
+ * Add plugin names to the following array to activate them
+ * Example:
+ * $conf['plugins'] = array(
+ * 'Example',
+ * 'Slony'
+ * );
+ */
+ $conf['plugins'] = array();
+
+ /*****************************************
+ * Don't modify anything below this line *
+ *****************************************/
+
+ $conf['version'] = 19;
+
+?>
@@ -0,0 +1,72 @@
+# phpMyAdmin - Web based MySQL browser written in php
+#
+# Allows only localhost by default
+#
+# But allowing phpMyAdmin to anyone other than localhost should be considered
+# dangerous unless properly secured by SSL
+
+Alias /phpMyAdmin /usr/share/phpMyAdmin
+Alias /phpmyadmin /usr/share/phpMyAdmin
+
+<Directory /usr/share/phpMyAdmin/>
+ AddDefaultCharset UTF-8
+ Order Deny,Allow
+ Allow from all
+ <IfModule mod_authz_core.c>
+ # Apache 2.4
+ <RequireAny>
+ Require all granted
+ </RequireAny>
+ </IfModule>
+ <IfModule !mod_authz_core.c>
+ # Apache 2.2
+ Order Deny,Allow
+ Allow from all
+ </IfModule>
+</Directory>
+
+<Directory /usr/share/phpMyAdmin/setup/>
+ <IfModule mod_authz_core.c>
+ # Apache 2.4
+ <RequireAny>
+ Require ip 127.0.0.1
+ Require ip ::1
+ </RequireAny>
+ </IfModule>
+ <IfModule !mod_authz_core.c>
+ # Apache 2.2
+ Order Deny,Allow
+ Deny from All
+ Allow from 127.0.0.1
+ Allow from ::1
+ </IfModule>
+</Directory>
+
+# These directories do not require access over HTTP - taken from the original
+# phpMyAdmin upstream tarball
+#
+<Directory /usr/share/phpMyAdmin/libraries/>
+ Order Deny,Allow
+ Deny from All
+ Allow from None
+</Directory>
+<Directory /usr/share/phpMyAdmin/setup/lib/>
+ Order Deny,Allow
+ Deny from All
+ Allow from None
+</Directory>
+
+<Directory /usr/share/phpMyAdmin/setup/frames/>
+ Order Deny,Allow
+ Deny from All
+ Allow from None
+</Directory>
+
+# This configuration prevents mod_security at phpMyAdmin directories from
+# filtering SQL etc. This may break your mod_security implementation.
+#
+#<IfModule mod_security.c>
+# <Directory /usr/share/phpMyAdmin/>
+# SecRuleInheritance Off
+# </Directory>
+#</IfModule>
Oops, something went wrong.

0 comments on commit f607d6d

Please sign in to comment.