{"id":20109872,"url":"https://github.com/hyper63/docker-architect","last_synced_at":"2025-03-02T18:24:56.388Z","repository":{"id":110718889,"uuid":"287620953","full_name":"hyper63/docker-architect","owner":"hyper63","description":"a docker container with NodeJS, AwsCLI and @architect/architect for CI builds","archived":false,"fork":false,"pushed_at":"2020-08-15T13:53:18.000Z","size":2,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-13T05:41:42.138Z","etag":null,"topics":["docker-image","nodejs"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/hyper63/ark","language":"Dockerfile","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/hyper63.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-14T20:45:02.000Z","updated_at":"2020-08-17T05:19:24.000Z","dependencies_parsed_at":"2023-04-28T13:47:50.146Z","dependency_job_id":null,"html_url":"https://github.com/hyper63/docker-architect","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyper63%2Fdocker-architect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyper63%2Fdocker-architect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyper63%2Fdocker-architect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyper63%2Fdocker-architect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyper63","download_url":"https://codeload.github.com/hyper63/docker-architect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241550101,"owners_count":19980648,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["docker-image","nodejs"],"created_at":"2024-11-13T18:09:42.496Z","updated_at":"2025-03-02T18:24:56.373Z","avatar_url":"https://github.com/hyper63.png","language":"Dockerfile","readme":"# Architect Docker Image - (Ark)\n\nThis image is used to deploy architect projects in CI systems like Jenkins and Gitlab.\n\n* NodeJS v12.18.3\n* AWS CLI - v2.0.38\n* @architect/architect version 6.5.4\n\n## How to build the image\n\n``` sh\ndocker image build .\ndocker tag [IMAGE ID] hyper63/ark:[version]\n```\n\n## Deploy to docker registry\n\n``` sh\ndocker push hyper63/ark:[version]\n```\n\n## How to use the image in jenkins v2\n\nWhen working with Jenkins 2 using `Jenkinsfile` you can specify a docker container as an agent to \nyour code.\n\n```\npipeline {\n  agent { docker { image 'hyper63/ark/v1' }}\n}\n```\n\nThe agent line will pull the ark image down and run it with your source code.\n\nIf you are using nodeJS you will want to setup npm to install global packages\n\n```\npipeline {\n  agent { docker { image 'hyper63/ark/v1' }}\n  environment {\n    HOME = '.'\n    NPM_CONFIG_PREFIX=\"${pwd()}/.npm-global\"\n    PATH=\"$PATH:${pwd()}/.npm-global/bin:${pwd tmp: true}/.npm-global/bin\"\n  }\n}\n\n```\n\nWhen using this image you need to create a folder `.aws` and create two files: `credentials, config` the credentials file will contain your `aws_access_key_id` and `aws_secret_access_key`, and the config file will contain `region` and `output`.  Here is a script that sets up these files using some environment variables.\n\n```\nstage('deploy') {\n  environment {\n    AWS_ACCESS_KEY_ID = credentials('aws-arc-key')\n    AWS_SECRET_ACCESS_KEY = credentials('aws-arc-secret')\n    AWS_DEFAULT_REGION = 'us-west-1'\n    AWS_DEFAULT_OUTPUT = 'json'\n  }\n  steps {\n    sh 'arc deploy'\n  }\n}\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyper63%2Fdocker-architect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyper63%2Fdocker-architect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyper63%2Fdocker-architect/lists"}