-
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.
adding 2023 dates + trying multiarch container in ghcr
- Loading branch information
IoTechCrafts
committed
Aug 31, 2024
1 parent
d04bfa4
commit 0ae5a2d
Showing
12 changed files
with
109 additions
and
84 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,4 +28,4 @@ jobs: | |
with: | ||
context: . | ||
push: true | ||
tags: ghcr.io/jalcocert/r-stocks:latest | ||
tags: ghcr.io/jalcocert/r-stocks:v1.0 |
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,38 @@ | ||
name: CI/CD Build MultiArch Shiny | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-and-push: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.CICD_TOKEN_Shiny }} | ||
|
||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
push: true | ||
platforms: linux/amd64,linux/arm64 | ||
tags: | | ||
ghcr.io/jalcocert/r-stocks:v1.1 | ||
ghcr.io/jalcocert/r-stocks:latest |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# FROM rocker/shiny:3.6.1 | ||
# LABEL maintainer "JAlcocerT <[email protected]>" | ||
# WORKDIR /srv/shiny-serverRUN apt-get update \ | ||
# && apt-get install -y libsasl2-dev libssl-devRUN echo \ | ||
# 'options(repos=list(CRAN="https://cloud.r-project.org/"))' > \ | ||
|
@@ -28,7 +27,6 @@ | |
# #################### Building from shiny docker image ###################3 | ||
|
||
# FROM rocker/shiny | ||
# LABEL maintainer "JAlcocerT <[email protected]>" | ||
|
||
# WORKDIR /srv/shiny-server | ||
|
||
|
@@ -94,6 +92,8 @@ | |
# ###########################OK################################## | ||
|
||
FROM rocker/tidyverse:4 | ||
LABEL maintainer "JAlcocerT" | ||
LABEL org.opencontainers.image.source https://github.com/JAlcocerT/R_Stocks | ||
|
||
RUN R -e 'install.packages(c("shiny", "plotly", "viridis","dplyr", "tidyr","lubridate","shinythemes","shinyWidgets","DT","bslib","priceR","quantmod"))' | ||
|
||
|
@@ -109,17 +109,8 @@ CMD R -e 'shiny::runApp("app.R", port = 3838, host = "0.0.0.0")' | |
|
||
# #################################################################### | ||
|
||
# #sudo docker build -t cerdo/shiny2 . | ||
# #sudo docker run -p3838:3838 -detached cerdo/shiny2 | ||
|
||
|
||
|
||
# #sudo DOCKER_BUILDKIT=1 docker build --no-cache --progress=plain -t fossengineer/rstocks . | ||
# #sudo docker run -p 3838:3838 --name rstonkss -detached fossengineer/rstocks | ||
|
||
# #sudo docker login | ||
# #sudo docker push fossengineer/rstocks | ||
|
||
# ########################casi casi############################ | ||
|
||
# #https://hub.docker.com/r/rocker/r-ver | ||
|
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
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.