hwport/ubuntu
ubuntu based - dev env (Ubuntu 기반 개발환경) - https://www.minzkn.com/moniwiki/wiki.php/hwport/ubuntu
10K+
Home page : https://www.minzkn.com/moniwiki/wiki.php/hwport/ubuntu (This homepage is being operated with the image 'hwport/ubuntu:www')
Dockerfile source : https://github.com/minzkn/ubuntu (All images were built using 'buildx')
Its purpose is to provide an Ubuntu-based general-purpose development (compilation) environment.
Latest Ubuntu LTS based development environment
docker-compose.yml sample:
version: "2.1"
services:
mzdev-test:
# image: hwport/ubuntu:24.04
image: hwport/ubuntu:latest
container_name: mzdev-test
hostname: mzdev-test
stdin_open: true
tty: true
privileged: true
# cap_add:
# - "SYS_ADMIN"
# - "SYS_RESOURCE"
# - "SYS_PTRACE"
# - "NET_ADMIN"
# - "NET_BIND_SERVICE"
# - "NET_BROADCAST"
# - "NET_RAW"
# - "BPF" # >= Linux Kernel v5.8
environment:
- container=docker
- TZ=Asia/Seoul
- TERM=xterm
- LC_ALL=C
- LANG=ko_KR.UTF-8
- EDITOR=vim
- XRDP_DESKTOP=yes
- SHELLINABOX=yes
# volumes:
# - /sys/kernel/debug:/sys/kernel/debug
# tmpfs:
# - /tmp
# - /run
# - /run/lock
# networks:
# - default
network_mode: bridge
ports:
- "2222:22"
- "3389:3389"
- "4200:4200"
restart: unless-stopped
#networks:
# default:
# external:
# name: bridge
#networks:
# default:
# driver: bridge
# enable_ipv6: true
# driver_opts:
# com.docker.network.enable_ipv6: "false"
# ipam:
# driver: default
# config:
# - subnet: 172.21.251.0/24
# gateway: 172.21.251.1
# - subnet: fec0:172:21:251::/64
# # gateway: fec0:172:21:251::1
compose up (docker-compose-v2) script example:
#!/bin/sh
g_docker_container_name=mzdev-test
docker compose up -d ${g_docker_container_name}
echo 'you need follow command:'
echo '$ docker exec -i -t "<container-name>" useradd -c "<comment>" -d "/home/<username>" -g "users" -G "users,adm,sudo,audio,input" -s "/bin/bash" -m "<username>"'
echo '$ docker exec -i -t "<container-name>" sh -c "echo \"<username>:<password>\" | chpasswd"'
Ubuntu LTS based development environment
docker-compose.yml sample:
version: "2.1"
services:
mzdev-test:
# image: hwport/ubuntu:12.04
# image: hwport/ubuntu:14.04
# image: hwport/ubuntu:16.04
# image: hwport/ubuntu:18.04
image: hwport/ubuntu:20.04
container_name: mzdev-test
hostname: mzdev-test
stdin_open: true
tty: true
privileged: true
# cap_add:
# - "SYS_ADMIN"
# - "SYS_RESOURCE"
# - "SYS_PTRACE"
# - "NET_ADMIN"
# - "NET_BIND_SERVICE"
# - "NET_BROADCAST"
# - "NET_RAW"
# - "BPF" # >= Linux Kernel v5.8
environment:
- container=docker
- TZ=Asia/Seoul
- TERM=xterm
- LC_ALL=C
- LANG=ko_KR.UTF-8
- EDITOR=vim
volumes:
- /sys/kernel/debug:/sys/kernel/debug
# networks:
# - default
network_mode: bridge
ports:
- "2222:22"
restart: unless-stopped
#networks:
# default:
# external:
# name: bridge
#networks:
# default:
# driver: bridge
# enable_ipv6: true
# driver_opts:
# com.docker.network.enable_ipv6: "false"
# ipam:
# driver: default
# config:
# - subnet: 172.21.251.0/24
# gateway: 172.21.251.1
# - subnet: fec0:172:21:251::/64
# # gateway: fec0:172:21:251::1
Ubuntu 20.04 LTS systemd based development environment
docker-compose.yml sample:
version: "2.1"
services:
ubuntu-systemd:
image: hwport/ubuntu:20.04-systemd
container_name: ubuntu-systemd
hostname: ubuntu-systemd
stdin_open: true
tty: true
# privileged: true
cap_add:
- "SYS_ADMIN"
# - "SYS_RESOURCE"
# - "SYS_PTRACE"
# - "NET_ADMIN"
# - "NET_BIND_SERVICE"
# - "NET_BROADCAST"
# - "NET_RAW"
# - "BPF" # >= Linux Kernel v5.8
security_opt:
- seccomp:unconfined
environment:
- container=docker
- TZ=Asia/Seoul
- TERM=xterm
- LC_ALL=C
- LANG=en_US.UTF-8
- EDITOR=vim
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
tmpfs:
- /tmp
- /run
- /run/lock
# networks:
# - default
network_mode: bridge
# ports:
# - "2222:22"
restart: unless-stopped
Ubuntu + KVM + QEMU based virtualization environment
docker-compose.yml sample:
version: "2.1"
services:
kvm:
image: hwport/ubuntu:kvm
container_name: kvm
hostname: kvm
stdin_open: true
tty: true
privileged: true
# cap_add:
# - "SYS_ADMIN"
# - "SYS_RESOURCE"
# - "SYS_PTRACE"
# - "NET_ADMIN"
# - "NET_BIND_SERVICE"
# - "NET_BROADCAST"
# - "NET_RAW"
# - "BPF" # >= Linux Kernel v5.8
# security_opt:
# - seccomp:unconfined
environment:
- container=docker
- TZ=Asia/Seoul
- TERM=xterm
- LC_ALL=C
- LANG=en_US.UTF-8
- EDITOR=vim
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- ./etc-libvirt:/etc/libvirt
- ./var-lib-libvirt:/var/lib/libvirt
# tmpfs:
# - /tmp
# - /run
# - /run/lock
# - /sys/kernel/debug:/sys/kernel/debug
# networks:
# - default
# network_mode: bridge
network_mode: host
ports:
- "2222:22"
- "5900:5900"
restart: unless-stopped
#networks:
# default:
# external:
# name: bridge
#networks:
# default:
# driver: bridge
# enable_ipv6: true
# driver_opts:
# com.docker.network.enable_ipv6: "false"
# ipam:
# driver: default
# config:
# - subnet: 172.21.251.0/24
# gateway: 172.21.251.1
# - subnet: fec0:172:21:251::/64
# # gateway: fec0:172:21:251::1
docker-compose.yml sample:
version: "2.1"
services:
xrdp:
image: hwport/ubuntu:xrdp
container_name: xrdp
hostname: xrdp
stdin_open: true
tty: true
environment:
- container=docker
- TZ=Asia/Seoul
- TERM=xterm
- LC_ALL=C
- LANG=en_US.UTF-8
- EDITOR=vim
tmpfs:
- /tmp
- /run
- /run/lock
# networks:
# - default
# network_mode: bridge
network_mode: bridge
ports:
- "3389:3389"
restart: unless-stopped
Ubuntu + Apache2 + PHP + ... based WebServer environment
docker-compose.yml sample:
version: "2.1"
services:
www-test:
image: hwport/ubuntu:www
container_name: www-test
hostname: www-test
stdin_open: true
tty: true
privileged: false
# environment:
# - container=docker
# - TZ=Asia/Seoul
# - TERM=xterm
# - LC_ALL=ko_KR.UTF-8
# - LANG=ko_KR.UTF-8
# - LANGUAGE=ko_KR:en_US
# - EDITOR=vim
# volumes:
# - /etc/letsencrypt:/etc/letsencrypt:ro
# - /var/log/apache2:/var/log/apache2
# - ./ports.conf:/etc/apache2/ports.conf:ro
# - ./000-default.conf:/etc/apache2/sites-available/000-default.conf:ro
# - ./default-ssl.conf:/etc/apache2/sites-available/default-ssl.conf:ro
# - ./hiddenserver.conf:/etc/modsecurity/hiddenserver.conf:ro
# networks:
# - default
# network_mode: host
network_mode: bridge
ports:
- "8080:80"
- "8443:443"
restart: unless-stopped
#networks:
# default:
# external:
# name: bridge
#networks:
# default:
# driver: bridge
# enable_ipv6: true
# driver_opts:
# com.docker.network.enable_ipv6: "false"
# ipam:
# driver: default
# config:
# - subnet: 172.21.251.0/24
# gateway: 172.21.251.1
# - subnet: fec0:172:21:251::/64
# # gateway: fec0:172:21:251::1
IPSecVPN environment (Using by strongswan)
docker-compose.yml sample:
version: "2.1"
services:
strongswan-latest:
# image: hwport/ubuntu:strongswan
image: hwport/ubuntu:strongswan-latest
container_name: strongswan-latest
hostname: strongswan-latest
stdin_open: true
tty: true
# privileged: true
cap_add:
- NET_ADMIN
- SYS_ADMIN
- SYS_MODULE
environment:
- container=docker
- TZ=Asia/Seoul
- TERM=xterm
- LC_ALL=C
- LANG=ko_KR.UTF-8
- EDITOR=vim
volumes:
- ./charon.conf:/etc/strongswan.d/charon.conf:ro
- ./strongswan.conf:/etc/strongswan.conf:ro
- ./ipsec.secrets:/etc/ipsec.secrets:ro
- ./ipsec.conf:/etc/ipsec.conf:ro
# - ./ipsec.d:/etc/ipsec.d:ro
# networks:
# - default
# networks:
# internet:
# ipv4_address: 192.168.0.2
# intranet:
# ipv4_address: 10.1.0.2
# network_mode: bridge
network_mode: host
# ports:
# - "500:500/udp"
# - "4500:4500/udp"
restart: unless-stopped
#networks:
# default:
# external:
# name: bridge
#networks:
# default:
# driver: bridge
# enable_ipv6: true
# driver_opts:
# com.docker.network.enable_ipv6: "false"
# ipam:
# driver: default
# config:
# - subnet: 172.21.251.0/24
# gateway: 172.21.251.1
# - subnet: fec0:172:21:251::/64
# # gateway: fec0:172:21:251::1
#networks:
# internet:
# ipam:
# driver: default
# config:
# - subnet: 192.168.0.0/24
# intranet:
# ipam:
# driver: default
# config:
# - subnet: 10.1.0.0/16
Sigmadesigns SMP86xx chipset build environment
docker-compose.yml sample:
version: "2.1"
services:
smp86xx:
image: hwport/ubuntu:smp86xx
container_name: smp86xx
hostname: smp86xx
stdin_open: true
tty: true
# privileged: true
# cap_add:
# - "SYS_ADMIN"
# - "SYS_RESOURCE"
# - "SYS_PTRACE"
# - "NET_ADMIN"
# - "NET_BIND_SERVICE"
# - "NET_BROADCAST"
# - "NET_RAW"
# - "BPF" # >= Linux Kernel v5.8
environment:
- container=docker
- TZ=Asia/Seoul
- TERM=xterm
- LC_ALL=C
- LANG=ko_KR.UTF-8
- EDITOR=vim
# volumes:
# - /sys/kernel/debug:/sys/kernel/debug
# networks:
# - default
network_mode: bridge
ports:
- "2222:22"
restart: unless-stopped
#networks:
# default:
# external:
# name: bridge
#networks:
# default:
# driver: bridge
# enable_ipv6: true
# driver_opts:
# com.docker.network.enable_ipv6: "false"
# ipam:
# driver: default
# config:
# - subnet: 172.21.251.0/24
# gateway: 172.21.251.1
# - subnet: fec0:172:21:251::/64
# # gateway: fec0:172:21:251::1
docker pull hwport/ubuntu