Skip to content

Add brave template command#225

Merged
idroz merged 4 commits intobravetools:masterfrom
Szubie:bravefile-template
Dec 2, 2022
Merged

Add brave template command#225
idroz merged 4 commits intobravetools:masterfrom
Szubie:bravefile-template

Conversation

@Szubie
Copy link
Collaborator

@Szubie Szubie commented Dec 2, 2022

A common problem is that a user may not know where to start if asked to create a Bravefile from scratch. The syntax can be difficult to remember - often they are tempted to copy-paste existing Bravefile examples and tweak them for their current application, which isn't ideal.

The brave template command in this PR creates an example Bravefile with commonly used settings and saves it in the current working directory, giving users a place to start and removing the need to refer to pre-existing Bravefiles.

The Bravefile created looks like this:

image: example-image/v1.0

base:
  image: alpine/3.16

packages:
  manager: apk
  system:
    - curl

run: 
  - command: echo
    args:
      - hello world

copy:
  - source: ./Bravefile
    target: /root/

service:
  name: example-container
  ports:
    - 8888:8888
  resources:
    ram: 2GB
    cpu: 2

@Szubie Szubie linked an issue Dec 2, 2022 that may be closed by this pull request
@idroz idroz merged commit 15610d3 into bravetools:master Dec 2, 2022
@Szubie Szubie deleted the bravefile-template branch December 21, 2022 20:03
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.

Add a blank Bravefile template helper function

2 participants