Merge pull request #228 from adosztal/pgpp

Python, Go, Perl, and PHP container
This commit is contained in:
Julien Duponchelle 2017-06-08 11:32:23 +02:00 committed by GitHub
commit 70826c582d
5 changed files with 60 additions and 34 deletions

View File

@ -0,0 +1,16 @@
{
"name": "Python, Go, Perl, PHP",
"category": "guest",
"description": "Container with integrated Python 2 & 3, Perl, PHP, and PHP7.0 interpreters, and a Go compiler.",
"vendor_name": "GNS3 Team",
"vendor_url": "https://www.gns3.com",
"product_name": "Python, Go, Perl, PHP",
"registry_version": 3,
"status": "stable",
"maintainer": "GNS3 Team",
"maintainer_email": "developers@gns3.net",
"docker": {
"adapters": 1,
"image": "gns3/python-go-perl-php:latest"
}
}

View File

@ -1,17 +0,0 @@
{
"name": "Python2",
"category": "guest",
"description": "Python is an interpreted, interactive, object-oriented, open-source programming language that lets you work quickly and integrate systems more effectively.",
"vendor_name": "Python Software Foundation",
"vendor_url": "https://www.python.org",
"documentation_url": "https://docs.python.org/2/",
"product_name": "Python 2.x",
"registry_version": 3,
"status": "stable",
"maintainer": "GNS3 Team",
"maintainer_email": "developers@gns3.net",
"docker": {
"adapters": 1,
"image": "python:2"
}
}

View File

@ -1,17 +0,0 @@
{
"name": "Python3",
"category": "guest",
"description": "Python is an interpreted, interactive, object-oriented, open-source programming language that lets you work quickly and integrate systems more effectively.",
"vendor_name": "Python Software Foundation",
"vendor_url": "https://www.python.org",
"documentation_url": "https://docs.python.org/3/",
"product_name": "Python 3.x",
"registry_version": 3,
"status": "stable",
"maintainer": "GNS3 Team",
"maintainer_email": "developers@gns3.net",
"docker": {
"adapters": 1,
"image": "python:3"
}
}

View File

@ -0,0 +1,20 @@
# docker base image for basic programming tools
FROM ubuntu:xenial
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get -y --no-install-recommends install \
net-tools telnet traceroute openssh-client nano vim-tiny iputils-ping php php-ldap php-json \
php-mail php-mcrypt php-mysql php-pgsql php-snmp php-sqlite3 php-ssh2 php-xmlrpc php7.0 \
php7.0-ldap php7.0-mysql php7.0-pgsql php7.0-snmp php7.0-sqlite3 php7.0-xmlrpc \
golang-go golang-github-go-sql-driver-mysql-dev golang-github-mattn-go-sqlite3-dev \
golang-github-go-ldap-ldap-dev golang-github-kolo-xmlrpc-dev \
python python3 python-pymysql python3-pymysql python-pygresql python3-postgresql \
python-pysnmp4 python3-pysnmp4 python-ldap3 python3-ldap3 python-paramiko python3-paramiko \
python-mailer python3-aioxmlrpc \
perl perl-modules-5.22 libdbd-mysql-perl libdbd-sqlite3-perl libsnmp-session-perl \
libdbd-ldap-perl libnet-ssh2-perl\
&& rm -rf /var/lib/apt/lists/*
VOLUME [ "/root" ]
CMD [ "sh", "-c", "cd; exec bash -i" ]

View File

@ -0,0 +1,24 @@
# Ubuntu - Programming Toolbox
This appliance contains the following networking tools:
- net-tools (basic network administration tools)
- ping
- ssh client
- telnet
- Python 2
- Python 3
- Perl
- Go
- PHP
The /root folder is mounted by default
## Build and publish the Images
First the base image has to be created:
```
docker build -t gns3/python-go-perl-php:latest .
docker push gns3/python-go-perl-php:latest (optional)
```