forked from GoogleCloudPlatform/golang-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request GoogleCloudPlatform#7 from proppy/appengine
appengine: initial import
- Loading branch information
Showing
6 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM google/golang | ||
|
||
ONBUILD ADD . /app | ||
ONBUILD RUN /app/build.sh | ||
|
||
EXPOSE 8080 | ||
CMD [] | ||
ENTRYPOINT ["/app/_ah_exe"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# google/appengine-go | ||
|
||
[`google/appengine-go`](https://index.docker.io/u/google/appengine-go) is a [docker](https://docker.io) base image for easily running App Engine [golang](http://golang.org) application. | ||
|
||
It is based on [`google/golang`](https://index.docker.io/u/google/golang) base image. | ||
|
||
## Usage | ||
|
||
- Create a Dockerfile in your App Engine application directory with the following content: | ||
|
||
FROM google/appengine-go | ||
|
||
- Use the Cloud SDK to build and run your application | ||
|
||
gcloud app run . | ||
|
||
## Notes | ||
|
||
The image assumes that your application: | ||
|
||
- listens on port `8080` | ||
|
||
When the Cloud SDK builds your Docker container image, it automatically injects the dependencies of your application into the build context, and builds them with your application binary. |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package internal | ||
|
||
const ( | ||
Secret = "42" | ||
) |
File renamed without changes.