Skip to content

maximatt/docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker

Docker definitions for some projects to learn and research.

Base

Base image for other projects based on Debian 10.

$ docker compose build debian10-base
$ docker compose start debian10-base

Base i386

Build a docker base image from scratch (based on Debian 10 i386)

$ sh mkImage.sh
$ docker build --rm -t i386/debian10:1.0 -f $(pwd -P)/Dockerfile .
$ docker run --name debian10_i386  --rm -ti  -v /tmp -v /run i386/debian10:1.0

Git

Project to setup a Git server

$ docker compose build git
$ docker compose start git

Create and access to repositories

$ docker exec -it $(docker ps | grep "git " | awk "{print \$1}") /bin/bash -c "git.sh create test"
  • Clone repository
$ git clone http://guser:[email protected]:5001/git/test.git
  • Delete repository
$ docker exec -it $(docker ps | grep "git " | awk "{print \$1}") /bin/bash -c "git.sh delete test"

Trac

Trac is a wiki and issue tracking system for software development projects.

This project enable the possibility to manage multiprojects, and all projects are setted to be authenticated with TRAC_USER and TRAC_PASSWORD (environment variables).

To setup a Trac server:

$ docker compose build trac
$ docker compose start trac

Create and access to repositories

  • Trac
  • Create repository
$ docker exec -it $(docker ps | grep "trac " | awk "{print \$1}") /bin/bash -c "trac.sh setup_project test"

Pendings

  • Add Git as repositorys to Trac.
  • Email configuration on Trac.
  • Add scripts to backup/restore, export wiki content as PDF/HTML.

Tor

Tor is a piece of software that enable to us an anonymous communication.

To retrieve onion address:

$ docker exec $(docker ps | grep tor-service | awk "{print \$1}") /bin/bash -c 'cat ./hidden_service/hostname'

Parameters

  • Arguments
    • TOR_VERSION: Tor version.
    • HIDDEN_SERVICE_PORT Tor service port (default 80).
    • HIDDEN_SERVICE_VERSION: Version of the onion address to be generated (default 3).
    • TOR_SITE_URI: URI where Tor service content is located (default tor-site:80)

About

docker images definitions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published