auto

package
v0.321.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

README

\(:appname, :app, ...) \outDir $'
    # ${appname}

    ${app("attrs")?("docstring")?("s").s:""}
    ## Prerequisites

    - [Sysl v0.11.0 or later ](https://sysl.io/docs/install/)
    - Go 1.20

    ## Building application Docker container image

    To build a docker container image for the application using the template
    Dockerfile, you first need to vendor all the dependencies. You can do so
    with the command
    ```sh
    go mod vendor
    ```

    Then run:

    ```sh
    docker build -t docker_${//str.lower(appname)} -f Dockerfile .
    ```

    ## Running the application in a Docker container

    o run the application inside the container, you need to prepare an
    application config file. Assuming you have an application config file
    present as `config.yml`, the containerised application can be run as:

    ```sh
    docker run --rm -t -p 8080:8080 --mount type=bind,source="$PWD"/config.yml,target=/app/config.yml,readonly docker_${//str.lower(appname)}:latest /bin/${outDir} /app/config.yml
    ```

'

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL