https://github.com/takapi327/sample-application-for-ecr-deployment
AWS ECR用のサンプルアプリケーション
https://github.com/takapi327/sample-application-for-ecr-deployment
Last synced: about 1 year ago
JSON representation
AWS ECR用のサンプルアプリケーション
- Host: GitHub
- URL: https://github.com/takapi327/sample-application-for-ecr-deployment
- Owner: takapi327
- Created: 2021-08-09T08:39:04.000Z (almost 5 years ago)
- Default Branch: develop
- Last Pushed: 2022-05-23T13:01:35.000Z (about 4 years ago)
- Last Synced: 2025-02-07T08:29:02.646Z (over 1 year ago)
- Language: Scala
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AWS ECR用のサンプルアプリケーション
## 概要
AWSインフラ構築時にECRイメージを多用するので、サンプルアプリケーションを作成し使用する際は本リポジトリを別名でクローンして使用する。
## 使用バージョン
| サービス | バージョン |
| ------------- | ------------- |
| Scala | 2.13.3 |
| sbt | 1.5.3 |
| sbt-plugin | 2.7.5 |
| sbt-native-packager | 1.7.6 |
| sbt-ecr | 0.15.0 |
| sbt-release | 1.0.13 |
## セットアップ手順
### 1. 本リポジトリを別名でクローンする。
```bash
$ git clone git@github.com:takapi327/sample-application-for-ecr-deployment.git ${your new application name}
```
### 2. gitの管理を解除する
```bash
$ rm -rf .git/
```
### 3. build.sbtの各所設定を変更(アプリケーション名の変更)
```
name := ${your new application name}
...
Docker / maintainer := ${your new AWS Account mail}
...
Ecr / repositoryName := ${your new application name}
```
### 4. 新しいリポジトリでGit管理を始める
```bash
$ git init
$ git add .
$ git commit -m "first commit"
$ git remote add origin git@github.com:${アカウント名}/${リポジトリ名}
$ git push -u origin master
```
### 5. AWS ECRへプッシュするためのシークレットキーの変更
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY