forked from danmux/floe
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds support for tls and bindata for web app assets
- Loading branch information
Showing
35 changed files
with
3,370 additions
and
88 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
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
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
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 @@ | ||
*_rsa* |
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,30 @@ | ||
FROM ubuntu:trusty | ||
|
||
# gcc for cgo | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
g++ \ | ||
gcc \ | ||
libc6-dev \ | ||
make \ | ||
pkg-config \ | ||
curl \ | ||
git \ | ||
openssh-client \ | ||
openssh-server \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
ENV GOLANG_VERSION 1.10.2 | ||
|
||
# Install Go | ||
RUN set -eux; \ | ||
mkdir -p /usr/local/go; \ | ||
curl --insecure https://dl.google.com/go/go${GOLANG_VERSION}.linux-amd64.tar.gz | tar xvzf - -C /usr/local/go --strip-components=1 | ||
|
||
# add the deployment private key | ||
COPY deploy_rsa /root/.ssh/id_rsa | ||
RUN echo " IdentityFile ~/.ssh/id_rsa" >> /etc/ssh/ssh_config | ||
|
||
# Set environment variables. | ||
ENV PATH /usr/local/go/bin:$PATH | ||
|
||
WORKDIR /root |
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,7 @@ | ||
from the docker folder - generate your key pair | ||
|
||
``` | ||
ssh-keygen -N "" -t rsa -b 4096 -C "build@floe.it" -f deploy_rsa | ||
``` | ||
|
||
add the public key deploy_rsa.pub to the github repo deploy key |
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,7 @@ | ||
set -ex | ||
|
||
result=${PWD} | ||
export GOPATH=$result | ||
export PATH=$PATH:$result/bin | ||
|
||
export |
Large diffs are not rendered by default.
Oops, something went wrong.
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,3 @@ | ||
package server | ||
|
||
//go:generate go-bindata-assetfs -pkg=server -prefix=../ ../webapp/... |
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
Oops, something went wrong.