├── app │ ├── css │ │ ├── **/.css │ ├── favicon.ico │ ├── images │ ├── index.html │ ├── js │ │ ├── **/.js │ └── partials/template ├── dist (or build)
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
package main | |
import "fmt" | |
func main() { | |
fmt.Println("Hello World!") | |
} |
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
package main | |
import "fmt" | |
func main() { | |
fmt.Println("Hello World inside Docker!") | |
} |
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
#!/bin/bash | |
# Get repo absolute location for mounting into the container. | |
local_workdir=$(cd $(dirname $(dirname "${BASH_SOURCE[0]}")) >/dev/null 2>&1 && pwd) | |
main() { | |
# Working directory inside the container. | |
local container_workdir=/go/src/github.com/the-evengers/go-restful | |
# Identifying container name. | |
local container_name=go-restful |
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
FROM golang:1 | |
# Configure to reduce warnings and limitations as instruction from official VSCode Remote-Containers. | |
# See https://code.visualstudio.com/docs/remote/containers-advanced#_reducing-dockerfile-build-warnings. | |
ENV DEBIAN_FRONTEND=noninteractive | |
RUN apt-get update \ | |
&& apt-get -y install --no-install-recommends apt-utils 2>&1 | |
# Verify git, process tools, lsb-release (common in install instructions for CLIs) installed. | |
RUN apt-get -y install git iproute2 procps lsb-release |
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
Show hidden characters
{ | |
"dockerFile": "Dockerfile", | |
"appPort": [ | |
"8000:8000" | |
], | |
"extensions": [ | |
"ms-vscode.go" | |
] | |
} |
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
FROM golang:1 | |
# Configure to avoid build warnings and errors as described in official VSCode Remote-Containers extension documentation. | |
# See https://code.visualstudio.com/docs/remote/containers-advanced#_reducing-dockerfile-build-warnings. | |
ENV DEBIAN_FRONTEND=noninteractive | |
RUN apt-get update \ | |
&& apt-get -y install --no-install-recommends apt-utils 2>&1 | |
# Verify git, process tools, lsb-release (common in install instructions for CLIs) installed. | |
RUN apt-get -y install git iproute2 procps lsb-release |
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
{ | |
"dockerFile": "Dockerfile", | |
// Configure port mapping between containers and local host, | |
// should be updated respectively to exposed service ports of referencing containers | |
// (defined in Dockerfile or docker-compose.xml or pre-built images). | |
"appPort": [ | |
"8000:8000" | |
], | |
// Configure to mount local workspace to a proper location within containers following Go module importing mechanism, | |
// should be updated respectively to module importing schema using in Go source files, |
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
#!/bin/bash | |
# Install required packages. | |
sudo yum install -y yum-utils \ | |
device-mapper-persistent-data \ | |
lvm2 | |
# Install container-selinux. | |
# Check for latest version: http://mirror.centos.org/centos/7/extras/x86_64/Packages/. | |
sudo yum install -y \ |
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
!#/bin/bash | |
################################# | |
# Install Docker CE on CentOS 7 # | |
################################# | |
# Update system. | |
sudo yum update -y | |
# Install Docker CE by downloading and executing installation script |
OlderNewer