Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
/coder-v1-cliPublic archive

Add envs create command#149

Merged
fuskovic merged 1 commit intomasterfromfaris/ch1867/coder-envs-create
Oct 22, 2020
Merged

Conversation

fuskovic
Copy link
Contributor

@fuskovicfuskovic commentedOct 21, 2020
edited
Loading

Usage

Adds thecreate command to theenvs command.

Create a new environment under the active user.Usage:  coder envs create [environment_name] [flags]Examples:# create a new environment using default resource amountscoder envs create --image id-of-imported-image my-env-name# create a new environment using custom resource amountscoder envs create --cores 4 --disk 100 --memory 8 --image id-of-imported-image --org id-of-existing-organization my-env-name# using short-hand flags.coder envs create -c 4 -d 100 -m 8 -i id-of-imported-image -o id-of-existing-organization my-env-nameFlags:  -c, --cpu float32      number of cpu cores the environment should be provisioned with. (default 1)  -d, --disk int         GB of disk storage an environment should be provisioned with. (default 10)      --follow           follow buildlog after initiating rebuild  -g, --gpus int         number GPUs an environment should be provisioned with.  -h, --help             help for create  -i, --image string     ID of the image to base the environment off of.  -m, --memory float32   GB of RAM an environment should be provisioned with. (default 1)  -o, --org string       ID of the organization the environment should be created under. (default "default")  -t, --tag string       tag of the image the environment will be based off of. (default "latest")

Example:

Create a simple environment with default resource values

default_resource_amounts

Create a new environment with custom resource values.

custom_resource_amounts

@fuskovicfuskovic marked this pull request as draftOctober 21, 2020 13:01
@fuskovicfuskovicforce-pushed thefaris/ch1867/coder-envs-create branch from06b2819 to5c51b63CompareOctober 21, 2020 20:51
@fuskovicfuskovic marked this pull request as ready for reviewOctober 21, 2020 20:55
@fuskovicfuskovic requested a review fromcmoogOctober 21, 2020 20:55
@cmoogcmoog mentioned this pull requestOct 21, 2020
@fuskovicfuskovicforce-pushed thefaris/ch1867/coder-envs-create branch 5 times, most recently from8fc1d63 to87b9aafCompareOctober 22, 2020 14:36
@fuskovicfuskovic requested a review fromcmoogOctober 22, 2020 14:51
Copy link
Contributor

@cmoogcmoog left a comment

Choose a reason for hiding this comment

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

Just a few fix-ups then it's good to go.

fuskovic reacted with thumbs up emoji
@fuskovicfuskovicforce-pushed thefaris/ch1867/coder-envs-create branch fromcfbf472 tobb0f544CompareOctober 22, 2020 15:15
@fuskovicfuskovicforce-pushed thefaris/ch1867/coder-envs-create branch from8719c5d to2c14487CompareOctober 22, 2020 15:16
@fuskovicfuskovic merged commit717ad15 intomasterOct 22, 2020
@cmoogcmoog deleted the faris/ch1867/coder-envs-create branchOctober 22, 2020 16:43
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@cmoogcmoogcmoog approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@fuskovic@cmoog

[8]ページ先頭

©2009-2025 Movatter.jp