CircleCI DynamoDB 本地 [英] CircleCI DynamoDB Local

查看:20
本文介绍了CircleCI DynamoDB 本地的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试对其进行设置,以便 CircleCI 可以在我的测试中使用 DynamoDB Local.我看到了关于如何安装的 this 链接CircleCI 上的 DynamoDB Local 但它看起来已经过时了,因为它们现在已经使用 CircleCI 2 迁移到新语法.

I'm trying to get it setup so CircleCI can use DynamoDB Local in my tests. I saw this link about how to install DynamoDB Local on CircleCI but it looks outdated since they have now moved to new syntax with CircleCI 2.

如何在最新版本的 CircleCI 上实现这一点?

How can I achieve this on the latest versions of CircleCI?

推荐答案

您可以使用构建步骤命令"将旧指令调整为新指令.由于我不熟悉该软件,因此您必须先玩一下才能使其正常工作:

You can adapt the old instructions into the new, using the build step 'command'. You will have to play with it a bit to get it to work as I'm not familiar with the software:

version: 2
jobs:
   build: 
     docker:
        - image: some-docker-image-that-has-java-or-even-dynamodb
     steps: 
        - stuff (usually 'checkout')  
        - run: 
           name: install java
           command: |
              apt-get update && apt-get install default-jre default-jdk
        - run:
           name: setup container
           command: |
              curl -k -L -o dynamodb-local.tgz http://dynamodb-local.s3-website-us-west-2.amazonaws.com/dynamodb_local_latest.tar.gz
              tar -xzf dynamodb-local.tgz
              java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb

这篇关于CircleCI DynamoDB 本地的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆