{"id":20270460,"url":"https://github.com/altimis/docker_image","last_synced_at":"2026-06-11T07:31:06.696Z","repository":{"id":60290680,"uuid":"542164442","full_name":"Altimis/docker_image","owner":"Altimis","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-13T22:57:27.000Z","size":117,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-10T23:53:25.350Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Altimis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-09-27T15:43:37.000Z","updated_at":"2022-11-13T17:45:42.000Z","dependencies_parsed_at":"2023-01-23T17:16:05.175Z","dependency_job_id":null,"html_url":"https://github.com/Altimis/docker_image","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Altimis/docker_image","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Altimis%2Fdocker_image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Altimis%2Fdocker_image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Altimis%2Fdocker_image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Altimis%2Fdocker_image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Altimis","download_url":"https://codeload.github.com/Altimis/docker_image/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Altimis%2Fdocker_image/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34188272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T12:30:36.998Z","updated_at":"2026-06-11T07:31:06.676Z","avatar_url":"https://github.com/Altimis.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pipeline\n**NOTE** : All setup steps are specified in the setup.sh bash script. \nCreate a bash script in ~ folder and copy and paste then run it using the command `source setup.sh` \n\nIn order to run the app in ec2 instance (ubuntu 20.04) we need to install the following requirements:  \n- Python (version\u003e3.7)\n- Git\n- Clone the repo containing the app from git\n- Install Google Chrome and Chromedriver\n- Install required python libraries to run the app\n- Setup the AWS credentials for an account that has full access to S3 and SES services\n\n## Install git \n`sudo apt-get update`  \n`sudo apt install git-all`\n## Install python 3\nPython 3.10 is preinstalled. Run `python3 --version` to verify\n## Install pip3\n`sudo apt-get update`  \n`sudo apt-get -y install python3-pip` (click enter if the instance wants to restart some services)\n\n## Setup S3\nCreate .aws folder : `mkdir .aws`  \nLocate to .aws folder : `cd .aws`  \nCreate credentials file : `touch credentials`  \nEdit credentials file : `nano credentials`  \n\nInsert the following with actual key pair:  \n[default]  \naws_access_key_id = YOUR_ACCESS_KEY  \naws_secret_access_key = YOUR_SECRET_KEY  \n\nCreate config file : `touch config`  \nEdit config file : `nano config`   \n\nInsert region:  \n[default]  \nregion=us-east-2  \n\nNow AWS credentials are setup to the ec2 instance. \nThe App can access S3 and SES if the account has the needed permissions.\n\nGo back to ~ folder : `cd ..`  \n## Clone repo\n`git clone https://github.com/Altimis/docker_image.git`\n## Locate to working directory\n`cd docker_image`\n## Install chrome browser\n`wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -`  \n\n`sudo sh -c 'echo \"deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main\" \u003e\u003e /etc/apt/sources.list.d/google-chrome.list'`  \n\n`sudo apt-get -y update`  \n\n`sudo apt-get install -y google-chrome-stable`\n\nverify if google-chrome 106 is installed : `google-chrome-stable --version`\n\n## Install chromedriver\n`sudo apt-get install -yqq unzip`  \n\n``wget -O /tmp/chromedriver.zip http://chromedriver.storage.googleapis.com/`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`/chromedriver_linux64.zip``\n\n`sudo unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/`  \n\n`sudo chmod 0777 /usr/local/bin/chromedriver`  \n\n## Install required Python libraries\n`pip install -r requirements.txt`\n\n## Run the script directly \n`python3 app.py`\n\n## Schedule the script using crontab\n### run script at boot using crontab\nref : https://www.linuxshelltips.com/run-python-script-ubuntu-startup/  \n\nTo do so, run the command : `crontab -e` (choose nano for editor)  \nAnd then add the following command at the end of the file :  \n`@reboot python3 /home/ubuntu/docker_image/app.py \u0026`  \nThis will run the script app.py in each reboot. \u0026 means that the script will wait ubuntu to fully start up.\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faltimis%2Fdocker_image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faltimis%2Fdocker_image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faltimis%2Fdocker_image/lists"}