gradle wrapper를 사용하려고 하는데, 아래와 같은 오류가 발생할 수 있다. ./gradlew --refresh-dependencies 오류: 기본 클래스 org.gradle.wrapper.GradleWrapperMain을(를) 찾거나 로드할 수 없습니다. 원인: java.lang.ClassNotFoundException: org.gradle.wrapper.GradleWrapperMain [~] ./gradlew --refresh-dependencies 오류: 기본 클래스 org.gradle.wrapper.GradleWrapperMain을(를) 찾거나 로드할 수 없습니다. 원인: java.lang.ClassNotFoundException: org.gradle.wrapper.GradleWrappe..
AWS Lambda에서 이미지 리사이징을 위해 sharp 라이브러리를 사용했을 때, 제목과 같은 오류가 발생할 수 있다. 이는 AWS Lambda의 아키텍쳐와 sharp 라이브러리의 아키텍쳐가 맞지 않기 때문에 발생하는 문제이며, 다음과 같이 node_modules에 sharp를 재설치하여 해결할 수 있다. [~] rm -rf ./node_modules/sharp [~] SHARP_IGNORE_GLOBAL_LIBVIPS=1 npm install --arch=arm64 --platform=linux sharp [~] 참고 sharp - High performance Node.js image processing sharp.pixelplumbing.com
AWS Lambda 등에 FFmpeg 바이너리를 업로드한 후에 이를 활용하고자 하는 경우, cannot execute binary file 과 같은 오류 메시지가 발생하는 경우가 있다. 그러나 로컬 환경에서는 정상적으로 동작하고 있는 경우, Lambda에 업로드한 바이너리 파일이 macOS 등 적절하지 않은 환경에 맞게 빌드된 것일 수 있다. 그러니 아래 링크에서 적절한 CPU 아키텍쳐에 맞게 빌드된 바이너리를 다운받아 교체하여 사용하도록 하자. John Van Sickle - FFmpeg Static Builds Welcome! Here you'll find the latest versions of FFmpeg for Linux kernels 3.2.0 and up. For installation in..
도커파일을 아래와 같이 작성하면, cmd와 bin이라는 폴더 자체를 옮기는게 아니라 두 폴더 안의 내용물들이 모두 나래비된다. FROM golang:latest LABEL maintainer="ingnoh@tistory.com" WORKDIR /ingnoh # bin과 cmd는 폴더 COPY bin cmd go.mod go.sum main.go /ingnoh/ # for m1 mac ENV GOOS=darwin \ GOARCH=arm64 CMD [ "go", "build", "-o", "/ingnoh/bin/my_binary" ] 때문에 bin과 cmd 폴더 자체를 옮겨서 컨테이너 내부에서도 폴더 구조를 유지하고자 한다면 다음과 같이 작성해야 한다. FROM golang:latest LABEL maint..
아래와 같은 패키지 구조가 있다고 하자. [my_first_go] tree -L 3 . └── src ├── helper │ ├── my_first_helper.go │ └── my_second_helper.go └── main.go [my_first_go] 이 때, 각 파일은 다음과 같은 내용을 포함한다. // main.go package main func main() {} // my_first_helper.go package helper import "fmt" func RunFirstHelper() { fmt.Println("Running first helper!!!") } // my_second_helper.go package helper import "fmt" func RunSecondHelper..
@ActiveProfiles("local") @AutoConfigureWebTestClient @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) class CreateTaskHashTest: BehaviorSpec() { @Autowired private lateinit var client: WebTestClient init { // ...테스트 코드 작성 } } 요렇게 작성했는데도 NoSuchBeanDefinitionException이 뜨는 경우, 아래와 같은 dependency를 추가하자. // build.gradle.kts dependencies { // ...생략 implementation("org.springf..
임의의 테라폼 버전을 설치하기 위해 /usr/local/bin 디렉토리로 옮기려는 중, 아래와 같은 문제가 발생하였다! [~] mv ~/Downloads/terraform /usr/local/bin/terraform mv: rename /Users/ingnoh/Downloads/terraform to /usr/local/bin/terraform: Not a directory [~] 그래서 /usr/local 위치에 가보니 bin이 뜬금없이 디렉토리가 아닌 바이너리 형태로 존재하는 기현상을 확인하였다. [~] cd /usr/local [local] ls -al total 32 drwxr-xr-x 4 root wheel 128 3 7 09:14 . drwxr-xr-x@ 11 root wheel 352 1 1..
- Total
- Today
- Yesterday
- Linux
- Docker
- JEST
- Puppeteer
- IntelliJ
- shell
- Node.js
- AWS
- postgresql
- RancherDesktop
- 코딩테스트
- spring boot
- mysql
- Vault
- javascript
- AWS IoT
- Java
- Database
- hashicorp
- terraform
- pgloader
- Gradle
- Git
- JPA
- Spring Cloud Config
- kotlin
- eureka
- react
- jQuery
- etc
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |