Closed ghost closed 2 years ago
Looking good - can you also incorporate https://github.com/GRESB/api-docs/issues/87 and https://github.com/GRESB/api-docs/issues/84?
You can also close https://github.com/GRESB/api-docs/issues/88 and these other 2 issues once done.
@joeyhorst updated changes mentioned in the comments #87 and #84 into the pull request.
This keeps failing on WSL2
I'm using docker-compose build
but it throws me the following error. Any idea what is happening @igorpertsev?
C:\Users\joey_dell_xps_13>wsl -l -v
NAME STATE VERSION
* Ubuntu-20.04 Running 2
docker-desktop-data Running 2
docker-desktop Running 2
[+] Building 31.8s (3/3) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 220B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> ERROR [internal] load metadata for docker.io/library/ruby:2.5.7-stretch 31.7s
------
> [internal] load metadata for docker.io/library/ruby:2.5.7-stretch:
------
failed to solve with frontend dockerfile.v0: failed to create LLB definition: failed to authorize: rpc error: code = Unknown desc = failed to fetch anonymous token: Get "https://auth.docker.io/token?scope=repository%3Alibrary%2Fruby%3Apull&service=registry.docker.io": dial tcp 52.200.78.26:443: i/o timeout
ERROR: Service 'middleman' failed to build : Build failed
joeyhorst@DESKTOP-CC618CP:~/api-docs$ git status
On branch 2022-api-docs-updates
Your branch is up to date with 'origin/2022-api-docs-updates'.
nothing to commit, working tree clean
joeyhorst@DESKTOP-CC618CP:~/api-docs$ git status
On branch 2022-api-docs-updates
Your branch is up to date with 'origin/2022-api-docs-updates'.
Probably makes most sense to post in https://github.com/GRESB/api-docs/pull/96 but as I understand these two pull requests are both on the branch 2022-api-docs-updates
Different day, different error - perhaps the office had some proxy settings which caused the time out
joeyhorst@DESKTOP-CC618CP:~/api-docs$ docker-compose build
Building middleman
[+] Building 77.5s (8/8) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 38B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/ruby:2.5.7-stretch 2.7s
=> [internal] load build context 0.0s
=> => transferring context: 3.66kB 0.0s
=> [1/4] FROM docker.io/library/ruby:2.5.7-stretch@sha256:c7a7986227f0f63d92bdd6d5c3d9abb50521768ce1dd5ce427 59.5s
=> => resolve docker.io/library/ruby:2.5.7-stretch@sha256:c7a7986227f0f63d92bdd6d5c3d9abb50521768ce1dd5ce427b 0.0s
=> => sha256:587ec5dd848498c4e52a60827591dab1a156773b83c55bd99e47e7c74045b479 7.50kB / 7.50kB 0.0s
=> => sha256:fbfe0f13ac4531fb6d077fda0e94ced4b9ed8a354c54b4efced9b7755d3f39d1 10.80MB / 10.80MB 5.7s
=> => sha256:6254ff6d0e6052b7bead70e37703002eda28ac40f9a1167ea9bf813bf9c17d7f 4.34MB / 4.34MB 3.8s
=> => sha256:c7a7986227f0f63d92bdd6d5c3d9abb50521768ce1dd5ce427bb334f2246aecc 1.65kB / 1.65kB 0.0s
=> => sha256:ed5ba459177dc9c893c5032f130f74d4d2d395121970054888e29a0693c69585 2.00kB / 2.00kB 0.0s
=> => sha256:56da78ce36e97a8ba1f860575bb1422d1cb6ab4dade70b06ddf1651302dde955 45.38MB / 45.38MB 9.8s
=> => sha256:e0e1e13bd9f6c381f158a5366b3eff242e8b4a4decfa940e915b1d5705ef4a28 50.07MB / 50.07MB 23.4s
=> => sha256:b86b38b40a24c042077b816eebfc5356bf938c6aed3069e102175ef1720416b8 214.91MB / 214.91MB 40.8s
=> => sha256:959fdd9d24bb8e2be6fdac2aee8a2f1761bbfad64bfc02f840d5edbf71579b47 206B / 206B 10.2s
=> => extracting sha256:56da78ce36e97a8ba1f860575bb1422d1cb6ab4dade70b06ddf1651302dde955 7.2s
=> => sha256:63e4f51f9de13c9a0654b3287899b038cbac36d27f2ff8e47eb35bc65148c5aa 20.88MB / 20.88MB 19.6s
=> => extracting sha256:fbfe0f13ac4531fb6d077fda0e94ced4b9ed8a354c54b4efced9b7755d3f39d1 1.5s
=> => sha256:750afbc84efaa938b2ca717a4df840fc04c00de0eb0b50aebede513fe9b9b456 148B / 148B 20.1s
=> => extracting sha256:6254ff6d0e6052b7bead70e37703002eda28ac40f9a1167ea9bf813bf9c17d7f 0.6s
=> => extracting sha256:e0e1e13bd9f6c381f158a5366b3eff242e8b4a4decfa940e915b1d5705ef4a28 8.5s
=> => extracting sha256:b86b38b40a24c042077b816eebfc5356bf938c6aed3069e102175ef1720416b8 16.4s
=> => extracting sha256:959fdd9d24bb8e2be6fdac2aee8a2f1761bbfad64bfc02f840d5edbf71579b47 0.0s
=> => extracting sha256:63e4f51f9de13c9a0654b3287899b038cbac36d27f2ff8e47eb35bc65148c5aa 1.3s
=> => extracting sha256:750afbc84efaa938b2ca717a4df840fc04c00de0eb0b50aebede513fe9b9b456 0.0s
=> [2/4] WORKDIR /app 6.2s
=> [3/4] COPY Gemfile* ./ 0.1s
=> ERROR [4/4] RUN bundle install 1.6s
------
> [4/4] RUN bundle install:
#8 1.598 Your Ruby version is 2.5.7, but your Gemfile specified >= 2.6.6
------
executor failed running [/bin/sh -c bundle install]: exit code: 18
ERROR: Service 'middleman' failed to build : Build failed
wrong branch 🤦 now switched to origin/update-gems
and that solves it 👌
however now hitting another issue during the build - I'll further investigate and keep updating this issue
#11 245.7 Fetching mini_racer 0.6.2
#11 245.7 Installing mini_racer 0.6.2 with native extensions
#11 249.8 Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
#11 249.8
#11 249.8 current directory:
#11 249.8 /usr/local/bundle/gems/mini_racer-0.6.2/ext/mini_racer_extension
#11 249.8 /usr/local/bin/ruby -I /usr/local/lib/ruby/2.6.0 -r
#11 249.8 ./siteconf20220412-8-ingwhc.rb extconf.rb
#11 249.8 checking for -lpthread... yes
#11 249.8 creating Makefile
#11 249.8
#11 249.8 current directory:
#11 249.8 /usr/local/bundle/gems/mini_racer-0.6.2/ext/mini_racer_extension
#11 249.8 make "DESTDIR=" clean
#11 249.8
#11 249.8 current directory:
#11 249.8 /usr/local/bundle/gems/mini_racer-0.6.2/ext/mini_racer_extension
#11 249.8 make "DESTDIR="
#11 249.8 compiling mini_racer_extension.cc
#11 249.8 cc1plus: warning: command-line option ‘-Wimplicit-int’ is valid for C/ObjC but
#11 249.8 not for C++
#11 249.8 cc1plus: note: unrecognized command-line option ‘-Wno-self-assign’ may have been
#11 249.8 intended to silence earlier diagnostics
#11 249.8 cc1plus: note: unrecognized command-line option ‘-Wno-parentheses-equality’ may
#11 249.8 have been intended to silence earlier diagnostics
#11 249.8 cc1plus: note: unrecognized command-line option ‘-Wno-constant-logical-operand’
#11 249.8 may have been intended to silence earlier diagnostics
#11 249.8 linking shared-object mini_racer_extension.so
#11 249.8 g++: error:
#11 249.8 /usr/local/bundle/gems/libv8-node-16.10.0.0-x86_64-linux/vendor/v8/x86_64-linux/libv8/obj/libv8_monolith.a:
#11 249.8 No such file or directory
#11 249.8 make: *** [Makefile:262: mini_racer_extension.so] Error 1
#11 249.8
#11 249.8 make failed, exit code 2
#11 249.8
#11 249.8 Gem files will remain installed in /usr/local/bundle/gems/mini_racer-0.6.2 for
#11 249.8 inspection.
#11 249.8 Results logged to
#11 249.8 /usr/local/bundle/extensions/x86_64-linux/2.6.0/mini_racer-0.6.2/gem_make.out
#11 249.8
#11 249.8 An error occurred while installing mini_racer (0.6.2), and Bundler cannot
#11 249.8 continue.
#11 249.8 Make sure that `gem install mini_racer -v '0.6.2' --source
#11 249.8 'https://rubygems.org/'` succeeds before bundling.
#11 249.8
#11 249.8 In Gemfile:
#11 249.8 mini_racer
------
executor failed running [/bin/sh -c bundle install]: exit code: 5
ERROR: Service 'middleman' failed to build : Build failed
Closing this as all changes are in https://github.com/GRESB/api-docs/pull/96 and will also delete this branch
updated the sample requests and responses along with minor formatting changes.