0.6.2 • Published 1 year ago

composerize-ts v0.6.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

composerize-ts

CI npm

This is a very small tool to convert docker run/create commands into (hopefully) working docker-compose.yml files.

CLI

composerize-ts can be run in the cli.

npm install composerize-ts -g to install, and run as such:

$ composerize-ts docker run -p 80:80 -v /var/run/docker.sock:/tmp/docker.sock:ro --restart always --log-opt max-size=1g nginx

Supported docker run/create options

Docker run/create optiondocker-compose equivalentRemarks
--add-hostextra_hosts
--blkio-weightblkio_config.weight
--cap-addcap_add
--cap-dropcap_drop
--cgroupnscgroup
--cgroup-parentcgroup_parent
--cpu-countcpu_count
--cpu-periodcpu_period
--cpu-quotacpu_quota
--cpu-rt-periodcpu_rt_period
--cpu-rt-quotacpu_rt_quota
--cpuscpus
--cpuset-cpuscpuset
--devicedevices
--device-cgroup-ruledevice_cgroup_rules
--dnsdns
--dns-optiondns_opt
--dns-searchdns_search
--domainnamedomainname
--entrypointentrypoint
--env/-eenvironment
--env-fileenv_file
--hostnamehostname
--exposeexpose
--group-addgroup_add
--health-cmdhealthcheck.test
--health-intervalhealthcheck.interval
--health-retrieshealthcheck.retries
--health-start-periodhealthcheck.start_period
--health-timeouthealthcheck.timeout
--initinit
--interactive/-istdin_open
--ipcipc
--isolationisolation
--labellabels
--linklinks
--log-driverlogging.driver
--log-optlogging.options
--mac-addressmac_address
--memory-swappinessmem_swappiness
--namecontainer_name
--oom-kill-disableoom_kill_disable
--oom-score-adjoom_score_adj
--pidpid
--pids-limitpids_limit
--platformplatform
--privilegedprivileged
--publish/-pnetworksadds a networks block as well
--publish-allnot convertable to docker-compose
--pullpull_policy
--read-onlyread_only
--quietnot convertable to docker-compose
--restartrestart
--rmnot convertable to docker-compose
--runtimeruntime
--security-optsecurity_opt
--shm-sizeshm_size
--stop-signalstop_signal
--stop-timeoutstop_grace_period
--storage-optstorage_opt
--sysctlsysctls
--tmpfstmpfs
--tty/-ttty
--ulimitulimit
--useruser
--usernsuserns_mode
--volume/-vvolumes
--volumes-fromvolumes_from
--workdirworking_dir

Technical documentation

You'll find the documentation in the docs folder.

Contributing

  • Clone a fork of the repo and install the project dependencies by running pnpm install
  • Make your changes, and build the project by running pnpm run build
  • Test your changes with pnpm run test

Maintainers

  • Carsten Götzinger
0.6.2

1 year ago

0.6.1

1 year ago

0.6.0

1 year ago

0.5.2

1 year ago

0.5.1

1 year ago

0.5.0

1 year ago

0.4.0

1 year ago

0.3.0

1 year ago

0.2.0

1 year ago

0.1.4

1 year ago

0.1.2

1 year ago