Sign inSign up

fabiodcorreia/codimd

By fabiodcorreia

•Updated about 6 years ago

A custom CodiMD image build with Alpine Linux

Image
1

237

fabiodcorreia/codimd repository overview

⁠Docker CodiMD Image

Maintenance Drone Status Latest Release GitHub Licence

MicroBadger Layers Docker Image Size (latest by date) Docker Pulls Docker Image Version (latest semver)

A custom CodiMD image build with Alpine Linux.

⁠Application Modifications

To optimize the application and reduce the image size some packages were removed, for that reason features related with these packages will not work.

⁠Packages Removed
  • pg
  • passport-bitbucket-oauth2
  • passport-dropbox-oauth2
  • passport-facebook
  • passport-github
  • passport-gitlab2
  • passport-google-oauth20
  • passport-twitter
  • passport-ldapauth
  • passport-oauth2
  • passport-saml
  • passport-next/passport-openid
  • @aws-sdk/client-s3-node
  • azure-storage
  • sqlite3
  • minio
  • mattermost
  • aws-sdk

⁠Versioning

This image follows the Semantic Versioning⁠ pattern.

  • MAJOR version - Changes on Base Image version (1.0.0 to 2.0.0)
  • MINOR version - Changes on CodiMD version (1.6.0 to 1.6.1)
  • PATCH version - Package updates and other non breaking changes on the image
  • DRAFT version - Unstable build for review (Optional)
⁠Version Mapping
Version1.01.12.0
Base Image1.x.x1.x.x2.x.x
CodiMD1.6.01.6.11.6.0

When Base Image gets upgraded the major version is incremented, when codimd gets upgraded the minor version is incremented.

⁠Tags

TagDescription
latestLatest version
1.0.0Specific patch version
1.0Specific minor version
1Specific major version
1.0.0-archSpecific patch version to that arch
1.0-archSpecific minor version to that arch
1-archSpecific major version to that arch
testBranch version - DO NOT USE

The version tags are the same as the repository versioning tags but without the v. The test version is only for build purposes, it should not be pulled.

The arch can be one of the supported architectures described below.

⁠Supported Architectures

ArchitectureTag
x86-64amd64
arm64arm64v8
armhfarm32v7

⁠Environment Variables

NameDescription
PUIDSet the UserID - Details⁠
PGIDSet the GroupID - Details⁠
TZSet the system timezone - Options⁠
SESSION_KEYSet the HTTP session key
DATABASE_HOSTSet the database hostname or ip address where the application will connect
DATABASE_NAMESet the database name that will be used by the application
DATABASE_USERSet the username for the database connection
DATABASE_PASSSet the password for the database username
DOMAIN_NAMESet the application domain name in case of reverse proxy
LOG_LEVELSet the log level info, warn, error (default: info)
ADD_PORT_URLSet the port on the url, required if the port is not 80 or 443
ALLOW_REGISTERSet the option to register new users true or false (default: true)
ALLOW_LOGINSet the option to allow user login true or false (default: true)
ALLOW_PDF_EXPORTSet the option to allow PDF export of notes true or false (default: false)
ALLOW_ANONYMOUSSet the option to allow anonymous access true or false (default: true)
ALLOW_GRAVATARSet the option to use gravatar to fetch the user avatar true or false

⁠Volumes and Ports

It exposes a single volume at /config where it keeps the configuration and other files related with the application.

Also a single port is exposed at 3000 to allow external HTTP request.

⁠Start Container

docker run \
  -e PUID=1000 \
  -e PGID=1000 \
  -e DATABASE_HOST=mariadb_codimd \
  -e DATABASE_NAME=codimddb \
  -e DATABASE_USER=codimduser \
  -e DATABASE_PASS=codimdpass \
  -e DOMAIN_NAME=localhost \
  -e ADD_PORT_URL=true \
  -p 3000:3000 \
  -v $PWD:/config \
  fabiodcorreia/codimd

Or use docker-compose, an example is provided on docker-compose.yml⁠

Tag summary

Content type

Image

Digest

Size

176.4 MB

Last updated

about 6 years ago

docker pull fabiodcorreia/codimd:1.0.0-amd64