You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
-47Lines changed: 0 additions & 47 deletions
Original file line number
Diff line number
Diff line change
@@ -3,53 +3,6 @@
3
3
4
4
Project based on Bootstrap
5
5
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:
0 commit comments