Skip to content

Commit

Permalink
Update yarn install to fix replaced yarnpkg key, fixes #2772 (#2773)
Browse files Browse the repository at this point in the history
* Update key for replaced yarnpkg key, fixes #2772
* Backport changes to circleci build for makensis
* Backport test changes that break on new windows docker
* Remove staticrequired step so we don't use outdated golang container
  • Loading branch information
rfay committed Feb 3, 2021
1 parent a9aa54f commit 9872526
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 8 deletions.
7 changes: 4 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ jobs:
command: ./.circleci/linux_circle_vm_setup.sh
name: NORMAL Circle VM setup - tools, docker, golang

- run:
command: source ~/.bashrc && nvm use 10 && make staticrequired EXTRA_PATH=/home/linuxbrew/.linuxbrew/bin
name: staticrequired
# Temporarily remove this for v1.16 branch of backports
# - run:
# command: source ~/.bashrc && nvm use 10 && make staticrequired EXTRA_PATH=/home/linuxbrew/.linuxbrew/bin
# name: staticrequired
- run:
command: |
make linux_amd64 linux_arm64 darwin_amd64 windows_amd64 windows_install EXTRA_PATH=/home/linuxbrew/.linuxbrew/bin
Expand Down
4 changes: 3 additions & 1 deletion .circleci/linux_circle_vm_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ export HOMEBREW_NO_AUTO_UPDATE=1
export HOMEBREW_NO_INSTALL_CLEANUP=1

brew tap drud/ddev >/dev/null
for item in osslsigncode golang golangci-lint mkcert mkdocs ddev makensis bats-core; do
for item in osslsigncode golang mingw-w64 mkcert mkdocs ddev bats-core; do
brew install $item >/dev/null || /home/linuxbrew/.linuxbrew/bin/brew upgrade $item >/dev/null
done
brew install --build-from-source makensis


# nvm on CircleCI has a few things. 10 is compatible with markdownlint-cli
nvm use 10
Expand Down
3 changes: 3 additions & 0 deletions containers/ddev-webserver/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ ENV CAROOT /mnt/ddev-global-cache/mkcert
ARG TARGETPLATFORM
ARG BUILDPLATFORM

RUN rm -f /etc/apt/sources.list.d/yarn.list && ( apt-get -qq remove yarn || true ) # Temporary change to switch to npm install
RUN npm config set unsafe-perm true && npm install --global yarn

RUN wget -q -O /tmp/nginx_signing.key http://nginx.org/keys/nginx_signing.key && \
apt-key add /tmp/nginx_signing.key && \
echo "deb http://nginx.org/packages/debian/ $(lsb_release -sc) nginx" > /etc/apt/sources.list.d/nginx.list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

@test "Verify required binaries are installed in normal image" {
if [ "${IS_HARDENED}" == "true" ]; then skip "Skipping because IS_HARDENED==true"; fi
COMMANDS="composer ddev-live drush git magerun magerun2 mkcert sudo terminus wp"
COMMANDS="composer ddev-live drush git magerun magerun2 mkcert sudo terminus wp yarn"
for item in $COMMANDS; do
docker exec $CONTAINER_NAME bash -c "command -v $item >/dev/null"
done
Expand Down
4 changes: 2 additions & 2 deletions pkg/dockerutil/dockerutils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,14 +239,14 @@ func TestComposeWithStreams(t *testing.T) {
err = ComposeWithStreams(composeFiles, os.Stdin, os.Stderr, os.Stdout, "exec", "-T", "web", "ls", "-d", "xx", "/var/run/apache2")
assert.Error(err)
output = stdout()
assert.Equal("ls: cannot access 'xx': No such file or directory\n", output)
assert.Contains(output, "ls: cannot access 'xx': No such file or directory")

// Flip stdout and stderr and create an error and normal stdout. We should see only the success captured in stdout
stdout = util.CaptureStdOut()
err = ComposeWithStreams(composeFiles, os.Stdin, os.Stdout, os.Stderr, "exec", "-T", "web", "ls", "-d", "xx", "/var/run/apache2")
assert.Error(err)
output = stdout()
assert.Equal("/var/run/apache2\n", output)
assert.Contains(output, "/var/run/apache2", output)
}

// TestCheckCompose tests detection of docker-compose.
Expand Down
2 changes: 1 addition & 1 deletion pkg/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ var DockerComposeFileFormatVersion = "3.6"
var WebImg = "drud/ddev-webserver"

// WebTag defines the default web image tag for drud dev
var WebTag = "v1.16.3" // Note that this can be overridden by make
var WebTag = "v1.16.6" // Note that this can be overridden by make

// DBImg defines the default db image used for applications.
var DBImg = "drud/ddev-dbserver"
Expand Down

0 comments on commit 9872526

Please sign in to comment.