diff --git a/Dockerfile b/Dockerfile index a131a31..5ecc944 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,6 +36,4 @@ RUN bundle install COPY . . -ENV FERRUM_CHROME_PATH=/usr/bin/google-chrome - ENTRYPOINT ["bundle", "exec", "ruby", "src/main.rb"] diff --git a/action.yml b/action.yml index 6f461ce..00b6bfb 100644 --- a/action.yml +++ b/action.yml @@ -97,7 +97,7 @@ runs: headless=${{ inputs.headless || 'false' }} docker pull ghcr.io/culturecreates/artsdata-pipeline-action/artsdata-rdf-fetcher:main - docker run -v $(pwd)/output:/usr/src/app/output ghcr.io/culturecreates/artsdata-pipeline-action/artsdata-rdf-fetcher:main \ + docker run --shm-size=1g -v $(pwd)/output:/usr/src/app/output ghcr.io/culturecreates/artsdata-pipeline-action/artsdata-rdf-fetcher:main \ "${{ inputs.page-url }}" \ "${{ inputs.entity-identifier }}" \ "output/${{ inputs.downloadFile }}" \ diff --git a/src/lib/headless_browser.rb b/src/lib/headless_browser.rb index 6e27336..c6e70b5 100644 --- a/src/lib/headless_browser.rb +++ b/src/lib/headless_browser.rb @@ -5,7 +5,7 @@ module HeadlessBrowser def self.fetch_json_ld_objects(entity_urls, base_url) puts "Loading browser..." - browser = Ferrum::Browser.new(headless: true, pending_connection_errors: false, process_timeout: 60, xvfb: true, browser_options: { 'no-sandbox': nil }) + browser = Ferrum::Browser.new(browser_path: "/usr/bin/google-chrome-stable", headless: true, pending_connection_errors: false, process_timeout: 60, xvfb: true, browser_options: { 'no-sandbox': nil }) graph = RDF::Graph.new add_url_sparql_file = File.read('./sparql/add_derived_from.sparql') entity_urls.each do |entity_url|