File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change 1414 PORT = 3000
1515
1616 before ( :all ) do
17- `docker build -t terminalwire-rails-server -f containers/rails/Dockerfile .`
18- @docker_id = `docker run -d terminalwire-rails-server` . chomp
17+ `docker buildx -t terminalwire-rails-server -f containers/rails/Dockerfile .`
18+ @docker_id = `docker run -p 3000: #{ PORT } - d terminalwire-rails-server` . chomp
1919 wait_for_server ( "0.0.0.0" , PORT )
2020
2121 @path = Pathname . new ( Dir . mktmpdir )
2222 @bin_path = @path . join ( "bin" ) . tap ( &:mkdir )
2323
24- @bin_path . join ( "hello" ) . tap do |file |
25- file . write <<~BASH
26- #!/usr/bin/env terminalwire-exec
27- url: "http://localhost:#{ PORT } /terminal"
28- BASH
29- file . chmod ( 0o755 )
30- end
24+ Terminalwire ::Binary . write (
25+ url : "http://localhost:#{ PORT } /terminal" ,
26+ to : @bin_path . join ( "hello" )
27+ )
3128
3229 ENV [ "PATH" ] = "#{ @bin_path . to_s } :#{ ENV [ "PATH" ] } "
3330
You can’t perform that action at this time.
0 commit comments