Navigation

    SOFTWARE TESTING

    • Register
    • Login
    • Search
    • Job Openings
    • Freelance Jobs
    • Companies
    • Conferences
    • Courses
    1. Home
    2. gionna
    G
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    gionna

    @gionna

    0
    Reputation
    30008
    Posts
    3
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    gionna Follow

    Best posts made by gionna

    This user hasn't posted anything yet.

    Latest posts made by gionna

    • RE: Kubernetes fails to do do garbage collection on images

      I think I fixed the issue.

      It seems it comes up, when the kubelet service starts before the docker service is up and running. So I added the directive After=docker.service to the [Unit] block of the kubelet service and restarted it. The issue seems to be gone now.

      posted in Continuous Integration and Delivery (CI
      G
      gionna
    • RE: Set umask for an individual salt state

      No, there's no facility for changing the umask of the running Salt process.

      What you could do is start a new process with cmd.run:

      install python module:
        cmd.run:
          - name: pip install foo
          - umask: '077'
          - unless:
            - fun: pip.is_installed
              pkgname: foo
      

      install python module at version:
      cmd.run:
      - name: pip install bar==4.2
      - umask: '077'
      - unless:
      - pip freeze | grep bar==4.2

      posted in Continuous Integration and Delivery (CI
      G
      gionna
    • RE: Convert an existing s3 bucket policy into a terraform-managed policy?

      Try this, since the bucket is already there with the policy you can run the below command to get the policy inside the tf state

      $ terraform import aws_s3_bucket_policy.allow_access_from_another_account my-s3-bucket-name
      

      Once the policy is there in the TF, run the below code in main.tf

      So that it will match with the policy in the state and in the plan it will display if it matches with the state or not.

      //resource "aws_s3_bucket" "example" { // bucket = "my-tf-test-bucket" //}

          resource "aws_s3_bucket_policy" "allow_access_from_another_account" {
            bucket = "enter the bucket ID from the portal"
            policy = data.aws_iam_policy_document.allow_access_from_another_account.json
          }
      
      data "aws_iam_policy_document" "allow_access_from_another_account" {
        statement {
          principals {
            type        = "AWS"
            identifiers = ["123456789012"]
          }
      
          actions = [
            "s3:GetObject",
            "s3:ListBucket",
          ]
      
          resources = [
            "arn for aws bucket",
          ]
        }
      }
      

      posted in Continuous Integration and Delivery (CI
      G
      gionna
    • RE: Why is my docker composer volume not work?
      version: "3.7"
      services:
        CONTAINER_NAME:
         image:  postgres
         environment:
           - POSTGRES_DB=postgres
           - POSTGRES_USER=postgres
           - POSTGRES_PASSWORD=postgres
      
         build: .
         command: python manage.py runserver 0.0.0.0:8000
         volumes:
           - .:/app
         ports:
           - "8000:8000"
         depends_on:
           - db
      

      source : https://stackoverflow.com/questions/56733841/service-image-must-be-a-mapping-not-a-string

      posted in Continuous Integration and Delivery (CI
      G
      gionna
    • RE: Setup multiple Raspberry Pi different network configurations

      Even without Ansible or other config management tool, there's no reason any of those steps need to be manual: you could drive everything with a shell script, thus reaping all the benefits of automation: no more errors, consistent deployments, and faster configuration. Using Ansible can help make the process more modular and more structured, but it doesn't fundamentally allow you to do anything new.


      Ignoring the question of what tooling you use to drive the configuration, I'd like to suggest an option that you may not have considered: it's possible to perform all the configuration on the image before burning it onto a microsd card. You can mount the raspberry pi os image on a local directory, and then make all your configuration changes there. I use a process like this:

      1. Download and unzip the raspberry pi os image

      2. Make a working copy of the image (this way you can re-use the base image multiple times to create different configured images):

        # cp 2022-01-28-raspios-bullseye-armhf-lite.img work.img
        

        I like to extend the image a bit so there's room for installing new software:

        # truncate -s 2500MB work.img
        
      3. Attach the work image to a loop device:

        # losetup -fnP --show work.img
        /dev/loop0
        
      4. Grow the filesystem to use the additional space:

        # parted /dev/loop0 resizepart 2 100%
        # e2fsck -f /dev/loop0p2
        # resize2fs /dev/loop0p2
        
      5. Mount the filesystems locally:

        # mount /dev/loop0p2 /mnt
        # mount /dev/loop0p1 /mnt/boot
        

      Now you're in a position where you can create and modify configuration files on the image, in order to...

      • Configure networking
      • Configure the hostname
      • Enable ssh
      • Configure wifi
      • Install ssh keys
      • Etc.

      But what if you want to do other things, like update or install packages? If you install the qemu-user-static package and properly configure the binfmt_misc module (modern versions of the qemu-user-static package will do this for you automatically), you will be able to run Raspberry Pi binaries on your host. This allows you to run commands inside the image, like this:

      # systemd-nspawn -D /mnt apt update
      # systemd-nspawn -D /mnt apt upgrade -y
      # systemd-nspawn -D /mnt apt install -y git
      

      Or inject a shell script:

      # systemd-nspawn -D /mnt --bind=$PWD/config.sh:/config.sh sh /config.sh
      

      Here I'm using systemd-nspawn, which is a little like chroot (in this example), except it takes care of mounting special filesystems like /sys and /proc and has all sorts of interesting options (like the --bind option for bind mounting files or directories into the image).


      When you're all done, unmount the filesystem and disconnect the loop device:

      # umount /mnt/boot /mnt
      # losetup -d /dev/loop0
      

      And write the customized image to an sd card:

      # dd if=work.img of=/dev/sdb bs=4M
      

      You can wrap the entire process described here in a script, and have it take parameters to configure networking (specify a static address or use dhcp), etc.

      posted in Continuous Integration and Delivery (CI
      G
      gionna
    • Check if player has an item in Minecraft and if so remove it

      I am creating a server where a certain item is banned. How do I get to know if a player has it in their inventory, and, if so, how can I delete all instances of it using command blocks?

      posted in Game Testing
      G
      gionna
    • Was Undertale made in GameMaker v1 or v2?

      Many people say that Toby Fox used GameMaker to make Undertale, but I'm curious -- which version of GameMaker did he use?

      posted in Game Testing
      G
      gionna
    • RE: How can consumption tax be useful on a good which is not being sold?

      Yes, goods are being sold: enter image description here

      Yes, consumption taxes are being paid: enter image description here

      From where the goods come from?

      Government officials can't answer that. That is the reason why there are no sell orders in the market window.

      These are to the player imagination: black market, smuggling, second-hand market.

      posted in Game Testing
      G
      gionna
    • RE: What video game is being played in Spiderhead (2022)?

      It appears to be https://en.wikipedia.org/wiki/Joust_(video_game) , a 1982 arcade game developed by Williams Electronics and Atari, in which the player controls a yellow knight riding a flying ostrich.

      enter image description here

      posted in Game Testing
      G
      gionna
    • How is the amount of checkpoints in Tower Control determined?

      I've always thought that there are 3 checkpoints on both sides, but I've played a match today when there were only 2. What was the reason from the reduction?

      posted in Game Testing
      G
      gionna