Skip to content

Commit

Permalink
Debugging browser
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-aravind committed Oct 23, 2024
1 parent d43fe25 commit 60a747b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,4 @@ RUN bundle install

COPY . .

ENV FERRUM_CHROME_PATH=/usr/bin/google-chrome

ENTRYPOINT ["bundle", "exec", "ruby", "src/main.rb"]
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}" \
Expand Down
2 changes: 1 addition & 1 deletion src/lib/headless_browser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit 60a747b

Please sign in to comment.