diff --git a/templates/asciinema-org/0/docker-compose.yml b/templates/asciinema-org/0/docker-compose.yml new file mode 100644 index 0000000..09d9dbc --- /dev/null +++ b/templates/asciinema-org/0/docker-compose.yml @@ -0,0 +1,39 @@ +asciinema-org: + image: 'asciinema/asciinema.org:latest' + links: + - postgres + - redis + restart: always + ports: + - ${port}:3000 + environment: + HOST: ${host}:${port} + DATABASE_URL: postgresql://postgres:${postgres_password}@postgres/asciinema + REDIS_URL: redis://redis:6379 + RAILS_ENV: development + +postgres: + image: 'postgres:latest' + ports: + - 5432:5432 + environment: + POSTGRES_PASSWORD: ${postgres_password} + container_name: postgres + +redis: + image: 'redis:latest' + ports: + - 6379:6379 + container_name: redis + +sidekiq: + image: 'asciinema/asciinema.org:latest' + links: + - postgres + - redis + command: 'ruby start_sidekiq.rb' + environment: + HOST: ${host}:${port} + DATABASE_URL: postgresql://postgres:${postgres_password}@postgres/asciinema + REDIS_URL: redis://redis:6379 + RAILS_ENV: development diff --git a/templates/asciinema-org/0/rancher-compose.yml b/templates/asciinema-org/0/rancher-compose.yml new file mode 100644 index 0000000..252d573 --- /dev/null +++ b/templates/asciinema-org/0/rancher-compose.yml @@ -0,0 +1,21 @@ +.catalog: + name: "asciinema-org" + version: "0.1-rancher1" + description: "Asciinema is a free and open source solution for recording terminal sessions and sharing them on the web." + minimum_rancher_version: v0.46.0 + questions: + - variable: "postgres_password" + label: "POSTGRES PASSWORD" + description: "Your Postgres Password" + required: true + type: "string" + - variable: "host" + label: "Host" + description: "Your Server Host" + required: true + type: "string" + - variable: "port" + label: "Port" + description: "Your Server Port" + required: true + type: "int" diff --git a/templates/asciinema-org/README.md b/templates/asciinema-org/README.md new file mode 100644 index 0000000..a7b470b --- /dev/null +++ b/templates/asciinema-org/README.md @@ -0,0 +1,15 @@ +# asciinema.org + +Record and share your terminal sessions, the right way. + +asciinema is a free and open source solution for recording terminal sessions +and sharing them on the web. + +This service uses the official [asciinema.org](https://hub.docker.com/r/asciinema/asciinema.org/) image. You can find asciinema.org's at [asciinema/asciinema.org](https://github.com/asciinema/asciinema.org/), asciinema's terminal recorder at +[asciinema/asciinema](https://github.com/asciinema/asciinema) and asciinema player at [asciinema/asciinema-player](https://github.com/asciinema/asciinema-player). + +## How to use + +After container starting, you'll need to exec `rbenv exec bundle exec rake db:setup` in asciinema/asciinema.org container to setup database, then modify $HOME/.config/asciinema/config to fit your needs. + +You can override the address/port that is sent in email with login token by passing $host and $port environment variables when starting the service. diff --git a/templates/asciinema-org/catalogIcon-asciinema-org.svg b/templates/asciinema-org/catalogIcon-asciinema-org.svg new file mode 100644 index 0000000..ac02ab5 --- /dev/null +++ b/templates/asciinema-org/catalogIcon-asciinema-org.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/templates/asciinema-org/config.yml b/templates/asciinema-org/config.yml new file mode 100644 index 0000000..b0e21e2 --- /dev/null +++ b/templates/asciinema-org/config.yml @@ -0,0 +1,6 @@ +name: asciinema-org +description: | + Asciinema is a free and open source solution for recording terminal sessions and sharing them on the web. +version: 0.1-rancher1 +category: Applications +license: AGPL v3