Skip to content

Commit

Permalink
Merge pull request #146 from Exabyte-io/update/SOF-7161
Browse files Browse the repository at this point in the history
SOF-7161: cove peerDependency
  • Loading branch information
k0stik committed Feb 21, 2024
2 parents 917c6c7 + ff84246 commit 44c5584
Show file tree
Hide file tree
Showing 6 changed files with 485 additions and 285 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/docker-build-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,33 @@ inputs:
runs:
using: composite
steps:
- name: Pull base image
uses: ./actions/docker/ecr
id: login-ecr
- name: Cache Docker images.
uses: ScribeMD/docker-cache@0.3.6
with:
ecr-repository: centos-7.9-base
aws-access-key-id: ${{ inputs.aws-access-key-id }}
aws-secret-access-key: ${{ inputs.aws-secret-access-key }}
image-tag: latest
action: pull
key: docker-${{ runner.os }}-${{ hashFiles('package.json') }}

# - name: Pull base image
# uses: ./actions/docker/ecr
# id: login-ecr
# with:
# ecr-repository: centos-7.9-base
# aws-access-key-id: ${{ inputs.aws-access-key-id }}
# aws-secret-access-key: ${{ inputs.aws-secret-access-key }}
# image-tag: latest
# action: pull

- name: Build base image
uses: ./actions/docker/build
with:
image-name: centos-base
dockerfile: ./dockerfiles/centos/Dockerfile

- name: Build container
uses: ./actions/docker/build
with:
image-name: wave-test
dockerfile: ./dockerfiles/app/Dockerfile
cli-args: --build-arg BASE_IMAGE=${{ steps.login-ecr.outputs.registry }}/centos-7.9-base
cli-args: --build-arg BASE_IMAGE=centos-base

- name: Run tests
shell: bash -l {0}
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/centos/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RUN yum install -y \

# Install nvm with node and npm
ENV NVM_DIR /usr/local/nvm
ENV NODE_VERSION 12.21.0
ENV NODE_VERSION 14.19.3
RUN mkdir /usr/local/nvm
RUN curl -sL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash \
&& . $NVM_DIR/nvm.sh \
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN apt-get update && apt-get install -y -q --no-install-recommends \

# Install nvm with node and npm
ENV NVM_DIR /usr/local/nvm
ENV NODE_VERSION 12.21.0
ENV NODE_VERSION 14.19.3
RUN mkdir /usr/local/nvm
RUN curl -sL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash \
&& . $NVM_DIR/nvm.sh \
Expand Down
Loading

0 comments on commit 44c5584

Please sign in to comment.