Code Monkey home page Code Monkey logo

the-printer's Introduction

Hi there, I'm Dennis!

A passionate fullstack software developer from Germany ๐Ÿ‡ฉ๐Ÿ‡ช

๐Ÿ“– About Me

<?php

namespace Dennis\Barlowe;

readonly class About extends Me
{
    public const CHARACTERISTICS = [
        'name'              =>  'Dennis Barlowe',
        'nationalities'     =>  ['en_US', 'de_DE'],
        'birthyear'         =>  1994,
        'role'              =>  'Web Developer',
        'gender'            =>  'male',
        'location'          =>  'Aschaffenburg, Germany',
    ];

    public function getPrimarySkillSet(): array
    {
        return [
            'languages' => ['php', 'html', 'twig', 'css', 'scss/sass', 'javascript', 'sql', 'bash'], 
            'frameworks' => ['symfony', 'wordpress'],
            'libraries' => ['react', 'doctrine'],
            'toolset' => ['git', 'composer', 'npm', 'intellij ide', 'atlassian', 'adobe', 'webpack'], 
            'operations' => ['docker', 'jenkins', 'gitlab-ci', 'github-actions'],
            'os' => ['osx', 'ubuntu', 'centos', 'debian', 'windows'],
            'webservers' => ['traefik', 'nginx', 'apache'],
            'databases' => ['mysql', 'mariadb', 'oracle'], 
            'architecture' => ['microservices', 'monolith', 'design patterns', 'api', 'modular', 'unittests', 'message queues', 'SOLID'],
        ];
    }

    public function sayHi(): string
    {
        return 'Thank you for stopping by. Maybe you find some of my work interesting.';
    }

}

$about = new About();
$about->sayHi();

๐Ÿ“ซ Connect with me

website ย ย  discord ย ย  twitterย ย  instagramย ย  linkedin

the-printer's People

Contributors

dennzo avatar gameplayjdk avatar

Watchers

 avatar

the-printer's Issues

Fix HealthCheck

file:///home/node/app/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.js:58
        _Callback_error.set(this, new ProtocolError());
                                  ^

ProtocolError: Protocol error (Page.printToPDF): paper width is zero or negative
    at new Callback (file:///home/node/app/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.js:58:35)
    at CallbackRegistry.create (file:///home/node/app/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.js:103:26)
    at Connection._rawSend (file:///home/node/app/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.js:212:26)
    at CDPSessionImpl.send (file:///home/node/app/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.js:419:78)
    at CDPPage.createPDFStream (file:///home/node/app/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.js:720:88)
    at CDPPage.pdf (file:///home/node/app/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.js:746:37)
    at PdfAction (file:///home/node/app/src/Action/PdfAction.js:29:31)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Exit code: 1.

Current Workaround is deactivating the health check in the docker-compose file.

    healthcheck:
      test: [ "CMD", "none" ]

Skip installation of puppeteer chromium

Add these to the Dockerfile

# puppeteer environment variables
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
ENV PUPPETEER_SKIP_DOWNLOAD=true

Image should run on ARM

  • The image FROM node:hydrogen-alpine supports ARM, but breaks all other architectures.
    • libstdc++ can be removed, but add ca-certificates.

Current status of base image.
puppeteer/puppeteer#10858

Possible workaround -> manual installation of puppeteer out of debian repositories.

CI Integration

  • PR - Hadolint
  • PR - Build Docker image
  • PR - Test JavaScript code (evaluate best way)
  • Tag - Build and Push docker image to registry
  • Post-Build - Docker run to test the creation of a document, expect result code 200 and check if the response is actually a application/pdf content-type

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.