petrchpetr
  • Member for 4 years, 6 months
  • Last seen more than a week ago
For storing avatars in s3, which approach has the lowest cost?
Accepted answer
3 votes

For the best performance naming many small files in an s3 bucket may not be the best idea unless they user_id is a random string. See how the S3 hashing algorithm works https://aws.amazon.com/blogs/...

View answer
What are Design Patterns for creating images?
Accepted answer
3 votes

The general design pattern is one container = one running service - see the initial comment at https://docs.docker.com/config/containers/multi-service_container/ Now, after spending about a year ...

View answer
How do I setup a script to run on a schedule in a clean & professional way?
Accepted answer
2 votes

AWS Lambda should be an obvious choice together with a a CloudWatch Event trigger https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/RunLambdaSchedule.html . Running an EC2 instance may be ...

View answer
docker mariadb access from remote
1 votes

Check netstat -tlpn on the VPS, can you see 0.0.0.0:3306 or something like that? If so, check the firewall. Both the firewall in the operating system and the firewall from the VPS provider (if there ...

View answer
AWS S3, as an organizer see empty bucket
1 votes

Does the bucket have versioning enabled? You should be able to see it in the bucket properties: Versioning: enabled. If so, when you are looking at the empty folder, at the top there is a switch "...

View answer
Is it possible to read secured keys from aws-secrets-manager without using aws access and secret key?
Accepted answer
1 votes

create a service which authorizes against SSO and the provides temporary credentials via AWS STS Service. That way you don't have to store anything anywhere and once the user loses access to SSO they ...

View answer
What does the RAILS_ENV environment variable do in Ruby on Rails?
1 votes

RAILS_ENV is en environment variable. Environment variable is a setting which may be read inside the container. Though, environment variables do exist on most of the operating systems https://en....

View answer
i have questions about docker-compose
1 votes

I searched for the healthcheck/postgres:alpine and I found the following repository with the Dockerfile: https://github.com/docker-library/healthcheck/blob/master/postgres/Dockerfile.alpine Assuming ...

View answer
How to trigger Jenkins job by deploying git pipline using webhook?
1 votes

I just played with it locally on a "safe network", but it may give you an idea. I put in .git/hooks/post-commit something like: wget --auth-no-challenge --http-user=$USER --http-password=$APITOKEN --...

View answer
SFTP server with third party user management system?
0 votes

On a common linux instances the user are authenticated against /etc/passwd, because YOU SPECIFICALLY ASK for this behavior. For example, when I install vsftpd, I can see a new file created under /etc/...

View answer
if the bottle neck is the number of connections, is it better to scale redis by sharding or by replication?
0 votes

Just for the sake of completeness: Redis documentation https://redislabs.com/ebook/part-3-next-steps/chapter-10-scaling-redis/ suggest a general rule of thumb - add replicas for reads, add shards for ...

View answer
How to avoid build scripts duplication
0 votes

What I have seen working is to use a custom docker image with all the common tools bundled in during the building process. And it seems that Travis CI supports this as well https://docs.travis-ci....

View answer
AWS REST API Query
0 votes

The referred documentation from the question https://docs.aws.amazon.com/IAM/latest/APIReference/API_ListAttachedUserPolicies.html has this example of a request: https://iam.amazonaws.com/?Action=...

View answer