Skip to content

A image packaged with Encore framework binaries.

License

Notifications You must be signed in to change notification settings

fibrasek/encore-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

encore-go

An image based on Go official image Go 1.19.5 official image packaged with Encore.dev framework binaries.

For more details, check it on Docker Hub.

Usage

Run to pull the image from Docker Hub

$ docker pull fibrasek/encore-go:0.1

Or you can clone this repository and build it locally:

$ git clone [email protected]:Fibrasek/encore-go.git
$ cd encore-go
$ docker build -t <name>:<tag> .

And then to test it, run:

$ docker run fibrasek/encore-go:0.1 encore version

# or if you build it locally, use the name that you chose
$ docker run <name>:<tag> encore version

# it should output the result of the command `encore version` (at the time this was written, v1.13.2)
encore version v1.13.2

In those examples, you can test with any command from Encore.dev CLI.

Use case

I wrote this to use in some pipelines I have in a Bitbucket repo, but it could be easily used in Github Actions too. For instance, here's an example of how easily I can run the tests of my project in my pipelines:

image: fibrasek/encore-go:0.1

pipelines:
  default:
    - step:
        name: Test
        script:
          - encore auth login --auth-key=$ENCORE_AUTH_KEY
          - encore test ./...

That's it, be creative :)

Contributing

Feel free to open an issue or pull request with any bugs, or improvements as you find :)

About

A image packaged with Encore framework binaries.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published