Skip to content

Commit

Permalink
🧹 Make docker compose version obsolete, fix casing (LayerZero-Labs#716)
Browse files Browse the repository at this point in the history
  • Loading branch information
janjakubnanista authored Jul 18, 2024
1 parent c05f11c commit 4eb19e7
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 8 deletions.
6 changes: 6 additions & 0 deletions .changeset/eighty-terms-roll.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@layerzerolabs/devtools-evm-hardhat": patch
"@layerzerolabs/devtools": patch
---

Make docker compose schema optional
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ ARG EVM_NODE_IMAGE=node-evm-hardhat
# .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-
# / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \
# `-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-'
FROM node:$NODE_VERSION as base
FROM node:$NODE_VERSION AS base

ARG RUST_TOOLCHAIN_VERSION=1.75.0

Expand Down Expand Up @@ -104,7 +104,7 @@ RUN docker compose version
# .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-
# / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \
# `-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-'
FROM $BASE_IMAGE as development
FROM $BASE_IMAGE AS development

ENV NPM_CONFIG_STORE_DIR=/pnpm
ENV NPM_CONFIG_PACKAGE_IMPORT_METHOD=copy
Expand Down
1 change: 0 additions & 1 deletion docker-compose.local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
# .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-
# / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \
# `-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-'
version: "3.9"

services:
# ~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~
Expand Down
1 change: 0 additions & 1 deletion docker-compose.registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
# .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-
# / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \
# `-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-'
version: "3.9"

services:
# ~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~
Expand Down
1 change: 0 additions & 1 deletion docker-compose.templates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
# .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-
# / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \
# `-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-'
version: "3.9"

services:
# Service that contains the whole project
Expand Down
1 change: 0 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
# .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-
# / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \
# `-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-'
version: "3.9"

services:
# ~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~
Expand Down
1 change: 0 additions & 1 deletion packages/devtools-evm-hardhat/src/simulation/compose.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ export const createSimulationComposeSpec = (
config: SimulationConfig,
networks: Record<string, AnvilOptions>
): ComposeSpec => ({
version: '3.9',
services: pipe(
networks,
// First we turn the networks into docker compose specs for EVM nodes
Expand Down
2 changes: 1 addition & 1 deletion packages/devtools/src/docker/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export type ComposeSpecVolume = null | ComposeSpecVolumeDefinition
export type ComposeSpecVolumes = Record<string, ComposeSpecVolume>

export interface ComposeSpec {
version: ComposeSpecVersion
version?: ComposeSpecVersion
services?: ComposeSpecServices
volumes?: ComposeSpecVolumes
}
Expand Down

0 comments on commit 4eb19e7

Please sign in to comment.