This repository has been archived by the owner on Sep 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
420 additions
and
176 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.green { | ||
color: #008000; | ||
font-weight: bold; | ||
} |
This file was deleted.
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
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,48 @@ | ||
Deployment in AWS EC2 instance | ||
============================== | ||
|
||
Each of the projects can be easily implemented on the AWS EC2 instance. Since there are tons of articles on this subject, below we will only focus on the stage where you already have access to the console on the instance. | ||
|
||
.. admonition:: You should probably follow official documentation | ||
|
||
| First steps with EC2 | ||
| https://docs.aws.amazon.com/AmazonECS/latest/developerguide/get-set-up-for-amazon-ecs.html | ||
| Docker basics | ||
| https://docs.aws.amazon.com/AmazonECS/latest/developerguide/docker-basics.html | ||
|
||
|
||
Remember that your inbound rules should appear like this: | ||
|
||
Inbound rules | ||
------------- | ||
|
||
+------+----------+------------+--------------+ | ||
| Type | Protocol | Port range | Source | | ||
+======+==========+============+==============+ | ||
| HTTP | TCP | 80 | 0.0.0.0/0 | | ||
+------+----------+------------+--------------+ | ||
| HTTP | TCP | 80 | ::/0 | | ||
+------+----------+------------+--------------+ | ||
| SSH | TCP | 22 | YOUR_HOME_IP | | ||
+------+----------+------------+--------------+ | ||
|
||
With Docker and Git installed on your instance | ||
---------------------------------------------- | ||
|
||
Going live is as simple as: | ||
|
||
.. code-block:: bash | ||
git clone https://git.luolix.tope/some-user/some-repository.git | ||
cd some-repository | ||
docker build . -t my_tag_name | ||
docker run -t -i -p 80:80 my_tag_name:latest | ||
Now by typing ``my_instance_IP`` in the browser you will see the server replies. | ||
|
||
|
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
Oops, something went wrong.