Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
207fe3cf
Unverified
Commit
207fe3cf
authored
Mar 31, 2022
by
Matthew Slipper
Committed by
GitHub
Mar 31, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2375 from mslipper/bugfix/docker-image-size
ci: Use Alpine to reduce image size
parents
297829bd
c1957126
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
22 deletions
+27
-22
popular-plants-change.md
.changeset/popular-plants-change.md
+12
-0
config.yml
.circleci/config.yml
+12
-12
Dockerfile.packages
ops/docker/Dockerfile.packages
+2
-9
wait-for-sequencer.sh
ops/scripts/wait-for-sequencer.sh
+1
-1
No files found.
.changeset/popular-plants-change.md
0 → 100644
View file @
207fe3cf
---
'
@eth-optimism/integration-tests'
:
patch
'
@eth-optimism/common-ts'
:
patch
'
@eth-optimism/contracts'
:
patch
'
@eth-optimism/core-utils'
:
patch
'
@eth-optimism/data-transport-layer'
:
patch
'
@eth-optimism/message-relayer'
:
patch
'
@eth-optimism/replica-healthcheck'
:
patch
'
@eth-optimism/sdk'
:
patch
---
Update Dockerfile to use Alpine
.circleci/config.yml
View file @
207fe3cf
...
@@ -208,22 +208,22 @@ jobs:
...
@@ -208,22 +208,22 @@ jobs:
steps
:
steps
:
-
restore_cache
:
-
restore_cache
:
keys
:
keys
:
-
v
1
-source-{{ .Branch }}-{{ .Revision }}
-
v
2
-source-{{ .Branch }}-{{ .Revision }}
-
v
1
-source-{{ .Branch }}
-
v
2
-source-{{ .Branch }}
-
checkout
-
checkout
-
save_cache
:
-
save_cache
:
key
:
v
1
-source-{{ .Branch }}-{{ .Revision }}
key
:
v
2
-source-{{ .Branch }}-{{ .Revision }}
paths
:
paths
:
-
"
.git"
-
"
.git"
-
restore_cache
:
-
restore_cache
:
keys
:
keys
:
-
v
1
-yarn-install-{{ checksum "yarn.lock" }}
-
v
2
-yarn-install-{{ checksum "yarn.lock" }}
-
v
1
-yarn-install
-
v
2
-yarn-install
-
run
:
-
run
:
name
:
Install dependencies
name
:
Install dependencies
command
:
yarn --frozen-lockfile
command
:
yarn --frozen-lockfile
-
save_cache
:
-
save_cache
:
key
:
v
1
-yarn-install-{{ checksum "yarn.lock" }}
key
:
v
2
-yarn-install-{{ checksum "yarn.lock" }}
paths
:
paths
:
-
node_modules
-
node_modules
-
packages/common-ts/node_modules
-
packages/common-ts/node_modules
...
@@ -238,7 +238,7 @@ jobs:
...
@@ -238,7 +238,7 @@ jobs:
name
:
Build monorepo
name
:
Build monorepo
command
:
yarn build
command
:
yarn build
-
save_cache
:
-
save_cache
:
key
:
v
1
-yarn-build-{{ .Revision }}
key
:
v
2
-yarn-build-{{ .Revision }}
paths
:
paths
:
-
"
."
-
"
."
...
@@ -248,7 +248,7 @@ jobs:
...
@@ -248,7 +248,7 @@ jobs:
steps
:
steps
:
-
restore_cache
:
-
restore_cache
:
keys
:
keys
:
-
v
1
-yarn-build-{{ .Revision }}
-
v
2
-yarn-build-{{ .Revision }}
-
checkout
-
checkout
-
run
:
-
run
:
name
:
Run Slither
name
:
Run Slither
...
@@ -262,7 +262,7 @@ jobs:
...
@@ -262,7 +262,7 @@ jobs:
steps
:
steps
:
-
restore_cache
:
-
restore_cache
:
keys
:
keys
:
-
v
1
-yarn-build-{{ .Revision }}
-
v
2
-yarn-build-{{ .Revision }}
-
checkout
-
checkout
-
run
:
-
run
:
name
:
Lint
name
:
Lint
...
@@ -283,7 +283,7 @@ jobs:
...
@@ -283,7 +283,7 @@ jobs:
steps
:
steps
:
-
restore_cache
:
-
restore_cache
:
keys
:
keys
:
-
v
1
-yarn-build-{{ .Revision }}
-
v
2
-yarn-build-{{ .Revision }}
-
checkout
-
checkout
-
run
:
-
run
:
name
:
Test
name
:
Test
...
@@ -306,7 +306,7 @@ jobs:
...
@@ -306,7 +306,7 @@ jobs:
steps
:
steps
:
-
restore_cache
:
-
restore_cache
:
keys
:
keys
:
-
v
1
-yarn-build-{{ .Revision }}
-
v
2
-yarn-build-{{ .Revision }}
-
checkout
-
checkout
# Note: The below needs to be manually configured whenever we
# Note: The below needs to be manually configured whenever we
# add a new package to CI.
# add a new package to CI.
...
@@ -385,7 +385,7 @@ jobs:
...
@@ -385,7 +385,7 @@ jobs:
steps
:
steps
:
-
restore_cache
:
-
restore_cache
:
keys
:
keys
:
-
v
1
-yarn-build-{{ .Revision }}
-
v
2
-yarn-build-{{ .Revision }}
-
checkout
-
checkout
-
run
:
-
run
:
name
:
Lint
name
:
Lint
...
...
ops/docker/Dockerfile.packages
View file @
207fe3cf
...
@@ -2,16 +2,9 @@
...
@@ -2,16 +2,9 @@
# be used to build any of the follow-on services
# be used to build any of the follow-on services
#
#
# ### BASE: Install deps
# ### BASE: Install deps
# We do not use Alpine because there's a regression causing it to be very slow
FROM node:16-alpine3.14 as base
# when used with typescript/hardhat: https://github.com/nomiclabs/hardhat/issues/1219
FROM node:16.13-buster-slim as base
RUN apt-get update -y && apt-get install -y --no-install-recommends git \
RUN apk --no-cache add curl jq python3 ca-certificates git make gcc musl-dev linux-headers bash
curl \
jq \
python3 \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# copy over the needed configs to run the dep installation
# copy over the needed configs to run the dep installation
# note: this approach can be a bit unhandy to maintain, but it allows
# note: this approach can be a bit unhandy to maintain, but it allows
...
...
ops/scripts/wait-for-sequencer.sh
View file @
207fe3cf
...
@@ -8,7 +8,7 @@ do
...
@@ -8,7 +8,7 @@ do
sleep
1
sleep
1
if
[
$i
-eq
$RETRIES
]
;
then
if
[
$i
-eq
$RETRIES
]
;
then
echo
'Timed out waiting for sequencer'
echo
'Timed out waiting for sequencer'
break
exit
1
fi
fi
echo
'Waiting for sequencer...'
echo
'Waiting for sequencer...'
((
i
=
i+1
))
((
i
=
i+1
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment