Skip to content

develop.sh: attempt to create a Docker template automatically #2627

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jun 27, 2022

Conversation

johnstcn
Copy link
Member

This PR makes the following changes:

  • Adds two variables docker_host and docker_arch to the example docker-code-server template
  • Adds an example params.yaml to docker-code-server and updates the README.md to reference these parameters
  • scripts/develop.sh will now attempt to create a template using docker-code-server with the appropriate parameters for the environment
  • Updated Lima example to make use of the template parameters for docker-code-server

Additional drive-bys:

  • webpack.dev.ts references CODER_HOST and not CODERV2_HOST; updated develop.sh accordingly
  • develop.sh should now terminate child processes upon error.

Tested on:

  • MacOS 12.4 (arm64, colima)
  • Ubuntu 20.04 (v1 dogfood image)
  • Ubuntu 20.04 (v2 dogfood template)

@johnstcn johnstcn requested review from jsjoeio, bpmct and a team June 24, 2022 11:04
@johnstcn johnstcn self-assigned this Jun 24, 2022
Copy link
Contributor

@presleyp presleyp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excited about this!

Copy link
Contributor

@jsjoeio jsjoeio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is super exciting!

Copy link
Member

@bpmct bpmct left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

cdroot
CODERV2_HOST=http://127.0.0.1:3000 INSPECT_XSTATE=true yarn --cwd=./site dev || kill -INT -${SCRIPT_PID} &
go run -tags embed cmd/coder/main.go server --address 127.0.0.1:3000 --in-memory --tunnel || kill -INT -${SCRIPT_PID} &
CODER_HOST=http://127.0.0.1:3000 INSPECT_XSTATE=true yarn --cwd=./site dev || kill -INT -$$ &
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did this var change?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I can tell it was always CODER_HOST and not CODERV2_HOST in webpack.dev.ts

johnstcn and others added 2 commits June 24, 2022 16:51
Co-authored-by: Ben Potter <ben@coder.com>
@johnstcn johnstcn merged commit bbbd524 into main Jun 27, 2022
@johnstcn johnstcn deleted the cj/develop-autocreate-template branch June 27, 2022 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants