Skip to content

nogayama/abcbank-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ABCBank webapp

Development

build image

  1. git clone

    git clone [email protected]:NOGAYAMA/abcbank-webapp.git
    cd abcbank-webapp
    
  2. build image from Dockerfile

    docker image build --tag abcbank-webapp:latest .
    
  3. (optional) smoketest on local

    docker run -d -p 5000:5000 abcbank-webapp:latest
    docker ps 
    curl localhost:5000
    
    docker stop $(docker ps -lq)
    docker rm   $(docker ps -lq)
    

upload the image to DockerHub

  1. make sure user account on DockerHub

  2. create a new tag of the image

    $ docker image list 
    REPOSITORY                                 TAG                 IMAGE ID            CREATED             SIZE
    abcbank-webapp                             latest              b48c890a6c82        9 minutes ago       
    
    docker image tag b48c890a6c82 nogayama/abcbank-webapp:latest
    
  3. push the image to dockerhub

    docker image push nogayama/abcbank-webapp:latest
    

    After pushing, you can see image on DockerHub e.g., nogayama

pull the image

  1. pull the image

    docker image pull nogayama/abcbank-webapp:latest
    

Upload the image to IBM Cloud

  1. login to IBM Cloud

    $ ibmcloud login --sso
    
  2. (optional) change regionibmcloud cr region-set

  3. Login to Container registry

    $ ibmcloud cr login
    
  4. add namespace

    $ ibmcloud cr namespace-add nogayama
    
  5. add tag

    docker tag abcbank-web "de.icr.io/nogayama/abcbank-web:latest"
    
  6. push

    #docker push <region>.icr.io/<my_namespace>/<image_repo>:<tag>
    $ docker push "jp.icr.io/nogayamaapp/mav:0.0.1"
    $ ibmcloud cr image-list
    イメージをリストしています...
    リポジトリー                タグ    ダイジェスト   名前空間      作成          サイズ   セキュリティー状況
    jp.icr.io/nogayamaapp/mav   0.0.1   8da58d49aea9   nogayamaapp   2 hours ago   381 MB   3 件の問題   
    OK
    

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published