Skip to content

scraly/pulumi-gophers

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

pulumi-gophers

This repo allows you to deploy your apps with Pulumi and the Docker Pulumi provider.

Please read the article in order to understand everything about this code :-).

Pre-requisites

  • Install pulumi CLI:
brew install pulumi/tap/pulumi
  • OVHcloud API credentials.

  • Pulumi account and access token

Creation of the Pulumi Go app

Init the project:

$ pulumi new go --force

Get the dependencies:

$ go get github.com/pulumi/pulumi-docker/sdk/v3@v3.6.1
$ go get github.com/pulumi/pulumi/sdk/v3@v3.44.2

Edit the main.go file.

Define ports:

$ pulumi config set gophersAPIPort 8080
$ pulumi config set gophersAPIWatcherPort 8000

Ask Go to download dependencies and update go.mod file:

$ go mod tidy

Deploy:

$ pulumi up

Cleanup

$ pulumi destroy

Usage

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages