mirror of
https://github.com/sony/sonyflake.git
synced 2026-09-11 18:16:04 +00:00
Fix lint errors (#70)
This commit is contained in:
+5
-2
@@ -1,6 +1,9 @@
|
||||
FROM ubuntu:14.04
|
||||
|
||||
ADD ./sonyflake_server /
|
||||
ENTRYPOINT ["/sonyflake_server"]
|
||||
COPY ./sonyflake_server /sonyflake_server
|
||||
|
||||
RUN useradd -m sonyflake
|
||||
USER sonyflake
|
||||
|
||||
ENTRYPOINT ["/sonyflake_server"]
|
||||
EXPOSE 8080
|
||||
|
||||
+8
-10
@@ -1,21 +1,19 @@
|
||||
Example
|
||||
=======
|
||||
# Example
|
||||
|
||||
This example runs Sonyflake on AWS Elastic Beanstalk.
|
||||
|
||||
Setup
|
||||
-----
|
||||
## Setup
|
||||
|
||||
1. Build the cross compiler for linux/amd64 if using other platforms.
|
||||
|
||||
```
|
||||
cd $GOROOT/src && GOOS=linux GOARCH=amd64 ./make.bash
|
||||
```
|
||||
```bash
|
||||
cd $GOROOT/src && GOOS=linux GOARCH=amd64 ./make.bash
|
||||
```
|
||||
|
||||
2. Build sonyflake_server in the example directory.
|
||||
|
||||
```
|
||||
./linux64_build.sh
|
||||
```
|
||||
```bash
|
||||
./linux64_build.sh
|
||||
```
|
||||
|
||||
3. Upload the example directory to AWS Elastic Beanstalk.
|
||||
|
||||
Reference in New Issue
Block a user