Skip to content

Commit 99f99a4

Browse files
clean readme
1 parent 1aa14b2 commit 99f99a4

File tree

1 file changed

+0
-47
lines changed

1 file changed

+0
-47
lines changed

README.md

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -3,53 +3,6 @@
33

44
Project based on Bootstrap
55

6-
## Run
7-
8-
To Run
9-
10-
```shell
11-
$ docker build -t elastic-coders/landing .
12-
$ docker run --rm -it -p 8080:80 elastic-coders/landing
13-
```
14-
15-
16-
## Deploy
17-
18-
To Deploy
19-
20-
Prerequisites: If you haven't installed the AWS CLI, please follow the instructions here to do so. If you haven't installed Docker, please follow the instructions here to do so.
21-
1) Retrieve the docker login command that you can use to authenticate your Docker client to your registry:
22-
23-
```shell
24-
$ aws ecr get-login --region eu-west-1
25-
```
26-
27-
28-
NOTE: if you are getting an error as: A client error (AccessDeniedException) occurred when calling the GetAuthorizationToken operation: User: arn:aws:iam::XXX:user/YOURUSER is not authorized to perform: ecr:GetAuthorizationToken on resource: * , you might wanna use the following
29-
30-
```shell
31-
export AWS_DEFAULT_PROFILE=YOURUSER
32-
```
33-
34-
2) Run the docker login command that was returned in the previous step.
35-
36-
3) Build your Docker image using the following command. For information on building a Docker file from scratch see the instructions here. You can skip this step if your image is already built:
37-
38-
```shell
39-
docker build -t elastic-website .
40-
```
41-
42-
4) After the build completes, tag your image so you can push the image to this repository:
43-
44-
```shell
45-
docker tag -f elastic-website:latest 949377834693.dkr.ecr.eu-west-1.amazonaws.com/elastic-website:latest
46-
```
47-
48-
5) Run the following command to push this image to your newly created AWS repository:
49-
50-
```shell
51-
docker push 949377834693.dkr.ecr.eu-west-1.amazonaws.com/elastic-website:latest
52-
```
536

547
## License
558

0 commit comments

Comments
 (0)