Skip to content

Commit bc8d8fd

Browse files
committed
Do not expand path, so it works with containers.
1 parent f2380d3 commit bc8d8fd

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

DOCUMENTATION.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ Or add to your Gemfile:
3636
gem "screenkit"
3737
```
3838

39+
Using Docker:
40+
41+
```bash
42+
docker run --shm-size=2g -v $PWD:/source --rm -it docker.io/fnando/screenkit
43+
```
44+
45+
Notice that Chrome requires a lot of memory, so you need `--shm-size=2g` (or
46+
more).
47+
3948
---
4049

4150
## Quick Start

lib/screenkit/cli/episode.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ def new
2424
options[:episode_dir] = config.episode_dir.parent.join(dir)
2525

2626
generator = Generators::Episode.new
27-
generator.destination_root =
28-
File.expand_path(File.dirname(options.config))
27+
generator.destination_root = File.dirname(options.config)
2928
generator.options = options
3029
generator.invoke_all
3130
end

lib/screenkit/cli/root.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Root < Base
99
desc "new PATH", "Create a new project"
1010
def new(path)
1111
generator = Generators::Project.new
12-
generator.destination_root = File.expand_path(path)
12+
generator.destination_root = path
1313
generator.options = options
1414
generator.invoke_all
1515
end

0 commit comments

Comments
 (0)