Add asciinema-org template (#141)
This commit is contained in:
parent
f6e820ac2d
commit
356bb12dc2
39
templates/asciinema-org/0/docker-compose.yml
Normal file
39
templates/asciinema-org/0/docker-compose.yml
Normal file
@ -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
|
21
templates/asciinema-org/0/rancher-compose.yml
Normal file
21
templates/asciinema-org/0/rancher-compose.yml
Normal file
@ -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"
|
15
templates/asciinema-org/README.md
Normal file
15
templates/asciinema-org/README.md
Normal file
@ -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.
|
10
templates/asciinema-org/catalogIcon-asciinema-org.svg
Normal file
10
templates/asciinema-org/catalogIcon-asciinema-org.svg
Normal file
@ -0,0 +1,10 @@
|
||||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 866.0254037844387 866.0254037844387">
|
||||
<defs>
|
||||
<mask id="small-triangle-mask">
|
||||
<rect width="100%" height="100%" fill="white"/>
|
||||
<polygon points="508.01270189221935 433.01270189221935, 208.0127018922194 259.8076211353316, 208.01270189221927 606.217782649107" fill="black"></polygon>
|
||||
</mask>
|
||||
</defs>
|
||||
<polygon points="808.0127018922194 433.01270189221935, 58.01270189221947 -1.1368683772161603e-13, 58.01270189221913 866.0254037844386" mask="url(#small-triangle-mask)" fill="#d40000"></polygon>
|
||||
<polyline points="481.2177826491071 333.0127018922194, 134.80762113533166 533.0127018922194" stroke="#d40000" stroke-width="90"></polyline>
|
||||
</svg>
|
After Width: | Height: | Size: 731 B |
6
templates/asciinema-org/config.yml
Normal file
6
templates/asciinema-org/config.yml
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user